[wp-trac] [WordPress Trac] #17019: add hooks for Media Library attachment counts

WordPress Trac noreply at wordpress.org
Thu Aug 8 17:25:45 UTC 2013


#17019: add hooks for Media Library attachment counts
-------------------------+------------------
 Reporter:  kevinB       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.7
Component:  Query        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------
Changes (by wonderboymusic):

 * milestone:  Awaiting Review => 3.7


Comment:

 Tidy'd up this patch, it was blowing up against trunk.

 The patch does the following:

 1. Allows you to pass `query_context` to `WP_Query`
 2. Adds `count` as an allowed value for `fields`
 3. Cleans up a few unfilterable direct SQL calls in media admin by using
 `get_posts()` with `query_context` passed to it

 I like it.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/17019#comment:33>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list