- fixed bbPress reccursive cycle on WP_Query;

This commit is contained in:
nikitozzzzzzz
2017-12-01 15:11:52 +02:00
parent 545804f4b3
commit 326863f7e3
2 changed files with 11 additions and 8 deletions
+3 -3
View File
@@ -108,13 +108,13 @@ if ( ! class_exists( 'Query' ) ) {
return $comments;
} else {
$custom_posts = new \WP_Query();
$args['post_status'] = explode( ',', $args['post_status'] );
$custom_posts->query( $args );
return $custom_posts;
return $custom_posts;
}
}
/***