[wp-trac] [WordPress Trac] #21835: wp_mime_type_icon() does wp_cache_set() when it should do wp_cache_add()

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 7 21:01:25 UTC 2012


#21835: wp_mime_type_icon() does wp_cache_set() when it should do wp_cache_add()
--------------------------+-----------------
 Reporter:  nacin         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  3.5
Component:  Media         |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------
 Really no reason for it to try an unconditional set, as it is only run
 when the get failed.

 Additionally, $post_id is not set when passed to the filter if the get
 succeeds, as noted by koopersmith.

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


More information about the wp-trac mailing list