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

WordPress Trac noreply at wordpress.org
Fri Aug 9 21:18:29 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    |
-------------------------+------------------

Comment (by MikeSchinkel):

 Replying to [comment:33 wonderboymusic]:
 > 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.

 Sweet!

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


More information about the wp-trac mailing list