[wp-trac] [WordPress Trac] #7242: wp_get_attachment_thumb_url() back-compat with old format ".thumbnail" thumbnails broken

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 4 10:43:15 GMT 2008


#7242: wp_get_attachment_thumb_url() back-compat with old format ".thumbnail"
thumbnails broken
----------------------------+-----------------------------------------------
 Reporter:  DD32            |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.6      
Component:  Administration  |     Version:  2.6      
 Severity:  normal          |    Keywords:  has-patch
----------------------------+-----------------------------------------------
 It appears that when using wp_get_attachment_thumb_url() for old
 attachments, Which use the "filename.thumbnail.jpg" format is broken, It
 cannot detect the thumbnail file, so returns a url to the fullsized image.

 The bug is a 2-part:
  1. The $id of the attachment wanted is not passed to
 wp_get_attachment_thumb_file()
  2. The $thumb_file variable is not available in the 2nd part of the If at
 the time that PHP calls it, An extra compilation check needs to be done to
 make it available, Adding a set of brackets around it solves it.

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


More information about the wp-trac mailing list