Changes between Version 1 and Version 7 of Ticket #21292
- Timestamp:
- 07/26/2012 07:54:29 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21292
- Property Cc ercoli@… added
-
Property
Summary
changed from
Using wp_handle_upload in the XML-RPC
toXML-RPC: wp_upload_bits should act like wp_handle_upload
-
Ticket #21292 – Description
v1 v7 3 3 The function check_upload_size() is something what you want except that it will use wp_die() if there is an error like this. The function is used as a filter: wp_handle_upload_prefilter. Which only get applied in the function wp_handle_upload. 4 4 5 We should change some of the functions to allow to return an error instead of using wp_die(). When you look into check_upload_size() this should get a second parameter instead of checking if there is a $_POST variable set.5 We should probably change check_upload_size() a bit so it doesn't use wp_die() but does it somewhere else. 6 6 7 7 related: #6559 and #21085