[wp-trac] [WordPress Trac] #11981: Bad default data for icon_dir filter in in post-template.php

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 22 23:02:19 UTC 2010


#11981: Bad default data for icon_dir filter in in post-template.php
--------------------------+-------------------------------------------------
 Reporter:  chrisbliss18  |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Media         |     Version:  3.0       
 Severity:  normal        |    Keywords:  has-patch 
--------------------------+-------------------------------------------------
 Apparently an old batch of code was never updated in the
 get_attachment_icon_src function found in wp-includes/post-template.php.
 The default value for the icon_dir filter is
 get_template_directory()/images rather than ABSPATH.WPINC/images/crystal.
 This causes the returned icon path for mime type icons to not match the
 paired URL if the default directory is used.

 The included patch has a fix that makes this filter's default value match
 the default value found in media.php and post.php.

 The patch was generated off of 3.0-alpha.

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


More information about the wp-trac mailing list