[wp-trac] [WordPress Trac] #16391: Don't add empty "_wp_attachment_metadata" on non-image media files

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 28 07:33:46 UTC 2011


#16391: Don't add empty "_wp_attachment_metadata" on non-image media files
-------------------------+-----------------------------
 Reporter:  Caspie       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Media        |     Version:  3.0.1
 Severity:  minor        |  Resolution:
 Keywords:               |
-------------------------+-----------------------------

Comment (by Caspie):

 Replying to [comment:1 scribu]:
 > You should use {{{!empty()}}} instead of {{{count()}}}.

 thx! for better performance I guess?

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


More information about the wp-trac mailing list