Skip to content

Commit 5e8b638

Browse files
authored
Merge pull request #124 from kidunot89/bugfix/post-object-connection-hook
PostObject hierarchy bugfix
2 parents 16834b5 + 04f6812 commit 5e8b638

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

includes/data/connection/class-post-connection-resolver.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ class Post_Connection_Resolver {
3333
public static function get_query_args( $query_args, $source, $args, $context, $info ) {
3434
// Determine where we're at in the Graph and adjust the query context appropriately.
3535
if ( true === is_object( $source ) ) {
36-
$query_args['post_parent'] = 0;
37-
unset( $query_args['post__in'] );
3836
switch ( true ) {
3937
case is_a( $source, Product::class ):
4038
// @codingStandardsIgnoreLine

0 commit comments

Comments
 (0)