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

WordPress Trac noreply at wordpress.org
Wed Mar 4 19:11:58 UTC 2015


#28381: Filter for unattached attachments count
-------------------------------------+-----------------------------
 Reporter:  khromov                  |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Media                    |     Version:  4.0
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:
-------------------------------------+-----------------------------
Changes (by wonderboymusic):

 * keywords:  has-patch => has-patch needs-refresh
 * milestone:  Awaiting Review => Future Release


Comment:

 I would suggest that the filter occur before the database query and pass
 `null`. That way, if you get a non-null value, you can return immediately
 without hitting the database.

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


More information about the wp-trac mailing list