We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 22a33b7 + 7d01159 commit 25af2f3Copy full SHA for 25af2f3
1 file changed
post-selection-ui.php
@@ -2,7 +2,7 @@
2
/*
3
Plugin Name: Post Selection UI
4
Description: An extraction of the post selection interface from the posts-to-posts plugin
5
-Version: 1.0.11
+Version: 1.0.12
6
Author: prettyboymp, banderon, matstars
7
Plugin URI: http://voceconnect.com
8
@@ -171,6 +171,10 @@ private function get_addable_query($args) {
171
'order' => $this->args['order']
172
);
173
174
+ if ( isset( $this->args['post_parent'] ) && is_int( $this->args['post_parent'] ) ) {
175
+ $defaults['post_parent'] = $this->args['post_parent'];
176
+ }
177
+
178
if ( !empty( $this->args['tax_query'] ) ) {
179
$defaults['tax_query'] = $this->args['tax_query'];
180
}
0 commit comments