[wp-trac] [WordPress Trac] #16654: Possible bug with the_post_thumbnail after changing upload_dir
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 25 02:13:46 UTC 2011
#16654: Possible bug with the_post_thumbnail after changing upload_dir
-----------------------------+-----------------------------
Reporter: sayontan | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Thumbnails | Version: 3.1
Severity: minor | Keywords:
-----------------------------+-----------------------------
I believe this is a bug in how the image thumbnail functionality behaves
with reference to the uploads folder.
On a standard installation of WP when you upload images they go into wp-
content/uploads. Now, after you have uploaded images, if you change the
upload_dir to something else, say wp-content/new-uploads, then run
the_post_thumbnail, it will return the location new-uploads even for
existing thumbnails in wp-content/uploads. This becomes an issue because
the image was loaded to wp-content/uploads and the function returns wp-
content/new-uploads as the path resulting in the image not being found.
Is this intended behavior? I have checked ticket #13483, but that seems to
talk about a different issue.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16654>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list