Skip to content

Instantly share code, notes, and snippets.

@PabloVallejo
Created August 2, 2013 19:55
Show Gist options
  • Save PabloVallejo/6142923 to your computer and use it in GitHub Desktop.
Save PabloVallejo/6142923 to your computer and use it in GitHub Desktop.
comment controller
diff --git a/application/controllers/comment.php b/application/controllers/comment.php
index 099c043..70a8603 100644
--- a/application/controllers/comment.php
+++ b/application/controllers/comment.php
@@ -45,6 +45,7 @@ class Comment_Controller {
// 'comment_content' => wp_generate_password( 50, false, false )
'comment_content' => $req->content
, 'comment_post_ID' => $req->post_id
+ , 'comment_parent' => $req->parent_id
);
$comment = new Comment_Model( $args );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment