[wp-trac] [WordPress Trac] #27532: Display for Unattached Media showing all images (instead of just unattached)

WordPress Trac noreply at wordpress.org
Wed Mar 26 20:33:23 UTC 2014


#27532: Display for Unattached Media showing all images (instead of just
unattached)
-----------------------------+--------------------
 Reporter:  Ipstenu          |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  highest omg bbq  |   Milestone:  3.9
Component:  Media            |     Version:  trunk
 Severity:  blocker          |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+--------------------
Changes (by SergeyBiryukov):

 * keywords:   => has-patch
 * severity:  minor => blocker


Comment:

 Introduced in [27373]: [source:trunk/src/wp-
 admin/includes/post.php?rev=27690#L995].

 `$q['post_parent'] = 0` doesn't work as expected in `WP::parse_request()`,
 because it's not declared as a public or a private query var. It ends up
 in `$extra_query_vars` and is not passed to `WP_Query::get_posts()`.

 [attachment:27532.patch] fixes that, but we can probably just revert that
 part of [27373].

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27532#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list