Skip to content

Commit

Permalink
Merge pull request #187 from jasonbahl/bug/comment-connection-query-a…
Browse files Browse the repository at this point in the history
…rgs-parent

#186 - Fix default "parent" arg for comment connection resolver
  • Loading branch information
jasonbahl committed Jul 31, 2017
2 parents d56c72e + df9d154 commit a434aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Type/Comment/Connection/CommentConnectionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function get_query_args( $source, array $args, AppContext $context
/**
* Set the default comment_parent for Comment Queries to be "0" to only get top level comments
*/
$query_args['comment_parent'] = 0;
$query_args['parent'] = 0;

/**
* Set the number, ensuring it doesn't exceed the amount set as the $max_query_amount
Expand Down

0 comments on commit a434aa2

Please sign in to comment.