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

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 2 16:48:24 UTC 2011


#17019: add hooks for Media Library attachment counts
-------------------------+-----------------------------
 Reporter:  kevinB       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Query        |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 The Media Library attachments listing and edit links can be filtered via
 existing WP_Query and has_cap hooks.  However, corresponding attachment
 counts are not cleanly filterable.

 The submitted ticket adds the following filters:

  * function wp_count_attachments() - result filter 'count_attachments'

  * WP_Media_List_Table::get_views() - query filter
 'attachment_orphans_query'

  * function update_gallery_tab() - query filter
 'gallery_attachment_count_query'

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


More information about the wp-trac mailing list