[wp-trac] [WordPress Trac] #10492: Various functions using 'thumb' index to try for image metadata, 'thumbnail' would be correct

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 28 00:59:18 UTC 2009


#10492: Various functions using 'thumb' index to try for image metadata,
'thumbnail' would be correct
---------------------------+------------------------------------------------
 Reporter:  simonwheatley  |       Owner:                         
     Type:  defect (bug)   |      Status:  new                    
 Priority:  normal         |   Milestone:  2.9                    
Component:  Media          |     Version:  2.8.1                  
 Severity:  normal         |    Keywords:  has-patch needs-testing
---------------------------+------------------------------------------------

Comment(by azaozz):

 Think you're looking at the wrong place in `wp_delete_attachment()`. The
 thumbnails are deleted right under the code block you're patching. That
 block seems to be for back-compat with 2.3.x. Look at lines 2616 to 2622.

 However only the back-compat code exist in
 `wp_get_attachment_thumb_file()`. We need to add support for the newer
 version there, not replace the old.

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


More information about the wp-trac mailing list