[wp-trac] [WordPress Trac] #21614: wp_mime_type_icon PHP notice fixes

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 16 20:37:31 UTC 2012


#21614: wp_mime_type_icon PHP notice fixes
--------------------------+------------------------------------
 Reporter:  sc0ttkclark   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  3.4.1
 Severity:  trivial       |   Keywords:  has-patch dev-feedback
--------------------------+------------------------------------
 wp_mime_type_icon ends up sending to the 'wp_mime_type_icon' filter:
 $icon, $mime, and $post_id

 Based on the PHP, it's set in such a way that PHP notices could be
 generated for variables don't exist.

 I've attached my patch that should resolve those potential notices.

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


More information about the wp-trac mailing list