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

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 3 02:36:31 UTC 2011

#17019: add hooks for Media Library attachment counts
 Reporter:  kevinB       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |

Comment (by kevinB):

 Agreed that making functions like this use WP_Query (with filters not
 suppressed) is the better and more poetic solution. I'm pleased that
 there's support for doing that and will submit some revised patches next

 But what about passing in a context arg similar to my proposed query
 filter names?  Then with every function in the app triggering the same
 query filters, plugins don't have to indirectly sleuth out the purpose of
 the query if some filtering distinction is desired. A context arg would
 also be '''very''' helpful in user_has_cap filter handling.

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

More information about the wp-trac mailing list