[wp-trac] Re: [WordPress Trac] #2682: Remove db store of absolute
path for uploads
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 8 15:55:02 GMT 2006
#2682: Remove db store of absolute path for uploads
-----------------------------+----------------------------------------------
Id: 2682 | Status: new
Component: Administration | Modified: Thu Jun 8 15:55:02 2006
Severity: normal | Milestone: 2.1
Priority: normal | Version: 2.1
Owner: ryanscheuermann | Reporter: ryanscheuermann
-----------------------------+----------------------------------------------
Comment (by ryanscheuermann):
Libertus,
That code was taken from the original method in inline-uploading.php.
Have you looked at mdawaffe's patch in #2794? I am recommending that my
patch and his be integrated before addressing this issue. His patch also
stores the basename of the thumb. With his new thumbnail filtering
methods, allowing thumbnails in a different directory would be plugin
territory.
That being said, I think wp_create_thumbnail should always return the full
path of the file. That function could be used by plugins or elsewhere in
the core, so it should return the fullpath to the created thumbnail.
Especially for legacy support. The relative filtering can be done
afterward.
--
Ticket URL: <http://trac.wordpress.org/ticket/2682>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list