[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
Sun Jul 26 16:42:39 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: Unassigned
Component: Media | Version:
Severity: normal | Keywords:
---------------------------+------------------------------------------------
Both get_attachment_thumb_file, wp_delete_attachment seem to access the
filename for the thumbnail attachment incorrectly; the functions try to
get ```$imagemeta[ 'thumb ]```, but WP stores the filename under
```$imagedata[ 'sizes' ][ 'thumbnail' ][ 'file' ]```.
Two patches: wp_get_thumbnail_file has been tested in the course of my
development, wp_delete_attachment follows the same principles of
correcting the indexes and _should_ work, but hasn't been tested as I'm
not using this function in my app currently and am on deadline... sorry!
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10492>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list