[wp-trac] [WordPress Trac] #16849: Add a filter for $overrides in wp_handle_upload()
WordPress Trac
wp-trac at lists.automattic.com
Sun Mar 13 17:38:56 UTC 2011
#16849: Add a filter for $overrides in wp_handle_upload()
-------------------------+-----------------------------
Reporter: iandunn | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 3.1
Severity: minor | Keywords:
-------------------------+-----------------------------
I'm writing a plugin that needs to set a $unique_filename_callback in
wp_handle_upload() during a normal post attachment upload (not a custom
upload form), but there's no way to do it without a filter like this one:
{{{
$overrides = apply_filters( 'wp_handle_upload_overrides', $overrides );
}}}
For now I just modded my /wp-admin/includes/file.php to add it, but
obviously that's not an ideal solution, especially since I plan on adding
the plugin to the repository for others to use.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16849>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list