[wp-trac] [WordPress Trac] #10559: Allow a custom subdir in wp_upload_dir
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 6 19:52:36 UTC 2009
#10559: Allow a custom subdir in wp_upload_dir
-------------------------------------+--------------------------------------
Reporter: aaroncampbell | Type: enhancement
Status: new | Priority: normal
Milestone: 2.9 | Component: Upload
Version: | Severity: normal
Keywords: has-patch needs-testing |
-------------------------------------+--------------------------------------
Comment(by aaroncampbell):
I'm sorry, I should be more specific. I'm using my custom wp_upload_dir
function to upload files to the right place which aren't associated with
any post. They are just for a plugin. For example, a plugin like blog
icons by Joost could use this to put the icons in wp-content/uploads/blog-
icons and my attachment manager plugin could upload the icons used for
attachments to wp-content/uploads/attachment-manager. Those examples both
assume that the blog is using the default wp-content/uploads, but if the
blog has a different upload dir, that would be used
(%%upload_dir%%/%%subdir%%/ or %%upload_dir%%/%%subdir%%/YYYY/MM/)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10559#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list