[wp-trac] [WordPress Trac] #17425: Add filter for $uploads in wp_handle_upload
WordPress Trac
wp-trac at lists.automattic.com
Sun May 15 17:42:49 UTC 2011
#17425: Add filter for $uploads in wp_handle_upload
-------------------------------------------------+-------------------------
Reporter: iandunn | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone: Awaiting
Component: Media | Review
Severity: minor | Version:
Keywords: needs-patch reporter-feedback close | Resolution: invalid
-------------------------------------------------+-------------------------
Changes (by iandunn):
* status: new => closed
* resolution: => invalid
Comment:
Ah, crap, you're right, I missed that. Sorry for the unnecessary report.
I guess my problem now is that I need to find a way to only change the
directory only for files my plugin uploads, rather than globally. Maybe I
can hook into that before the upload and change it if post_type ==
'my_custom_type', and then set it back after the upload.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17425#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list