[wp-trac] [WordPress Trac] #28381: Filter for unattached attachments count

WordPress Trac noreply at wordpress.org
Wed May 28 15:25:21 UTC 2014


#28381: Filter for unattached attachments count
-------------------------+------------------------------
 Reporter:  khromov      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by khromov):

 Hey Eric,

 I'm making a plugin that will allow non-admins to see their own Media
 items only.

 Here is a working copy of the plugin, (assuming the hook is added as per
 my patch):

 https://gist.github.com/khromov/29411bb7ca3fdd2c3890

 The "problem" is the inconsistency that you can filter media attachment
 counts, but not the unattached media attachment count.

 Here's a photo for clarification. The count in the red box cannot be
 filtered.
 https://dl.dropboxusercontent.com/u/2758854/this-one-.png

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


More information about the wp-trac mailing list