[wp-trac] [WordPress Trac] #12493: Filter $bits in wp_upload_bits()
WordPress Trac
noreply at wordpress.org
Fri Sep 12 05:57:16 UTC 2014
#12493: Filter $bits in wp_upload_bits()
------------------------------+--------------------------
Reporter: Viper007Bond | Owner: josephscott
Type: enhancement | Status: new
Priority: normal | Milestone: 4.1
Component: Upload | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch mobile | Focuses:
------------------------------+--------------------------
Comment (by nacin):
Replying to [comment:8 Viper007Bond]:
Yep. Anything that makes it more difficult to be backwards compatible with
future changes is usually a good example of a bad filter.
This one seems fairly harmless, but it looks like demand for it is
particularly low. Also, actually messing with the bits is kind of low
level, no? I'd kind of prefer an action similar to wp_handle_upload (which
is actually a filter) that lets you know where the file is upon
completion. Unfortunately wp_handle_upload() is not a shining example of
hooks as it uses that weird overrides stuff from probably the 1960s.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12493#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list