Ticket #16849: 16849.2.patch
File 16849.2.patch, 843 bytes (added by , 11 years ago) |
---|
-
src/wp-admin/includes/file.php
239 239 } 240 240 241 241 $file = apply_filters( 'wp_handle_upload_prefilter', $file ); 242 $overrides = apply_filters( 'wp_handle_upload_overrides', $overrides ); 242 243 243 244 // You may define your own function and pass the name in $overrides['upload_error_handler'] 244 245 $upload_error_handler = 'wp_handle_upload_error'; … … 377 378 } 378 379 } 379 380 381 $file = apply_filters( 'wp_handle_sideload_prefilter', $file ); 382 $overrides = apply_filters( 'wp_handle_sideload_overrides', $overrides ); 383 380 384 // You may define your own function and pass the name in $overrides['upload_error_handler'] 381 385 $upload_error_handler = 'wp_handle_upload_error'; 382 386