[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 00:03:08 UTC 2011


#16391: Don't add empty "_wp_attachment_metadata" on non-image media files
--------------------------+------------------------------
 Reporter:  Caspie        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  3.0.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by scribu):

 You should use {{{!empty()}}} instead of {{{count()}}}.

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


More information about the wp-trac mailing list