[wp-hackers] Proposal: standardize plugin-data path
wp-hackers at striderweb.com
Fri Sep 26 17:26:58 GMT 2008
On Sep 26, 2008, at 8:35 AM, Otto wrote:
>> Seems to me that the safest place to do this would be
> Pardon me, using wp_upload_dir() is a bad idea due to the year/month
> thing. Use WP_CONTENT_DIR . '/uploads/your_plugin_name' instead.
Otto -- Could you please explain the "year/month thing"?
Obviously the existence of wp_upload_dir() indicates that path can
change, and is not necessarily within WP_CONTENT_DIR.
Thus, if wp_upload_dir() automatically appends the date, shouldn't
there be a way to prevent this? wp_upload_dir(false) or somesuch?
More information about the wp-hackers