WordPress.org

Make WordPress Core

Changes between Version 1 and Version 7 of Ticket #21292


Ignore:
Timestamp:
07/26/12 19:54:29 (3 years ago)
Author:
markoheijnen
Comment:

Added a new patch that checks if a user can upload any file.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21292

    • Property Cc ercoli@… added
    • Property Summary changed from Using wp_handle_upload in the XML-RPC to XML-RPC: wp_upload_bits should act like wp_handle_upload
  • Ticket #21292 – Description

    v1 v7  
    33The 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.  
    44 
    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. 
     5We should probably change check_upload_size() a bit so it doesn't use wp_die() but does it somewhere else. 
    66 
    77related: #6559 and #21085