Ticket #16849: 16489.3.patch
File 16489.3.patch, 804 bytes (added by , 7 years ago) |
---|
-
src/wp-admin/includes/file.php
263 263 */ 264 264 $file = apply_filters( "{$action}_prefilter", $file ); 265 265 266 /** 267 * Filters the ovverride action for a file before it is uploaded to WordPress. 268 * 269 * The dynamic portion of the hook name, `$action`, refers to the post action. 270 * 271 * @param array $file An array of overrides actions. 272 */ 273 $overrides = apply_filters( "{$action}_overrides", $overrides ); 274 266 275 // You may define your own function and pass the name in $overrides['upload_error_handler'] 267 276 $upload_error_handler = 'wp_handle_upload_error'; 268 277 if ( isset( $overrides['upload_error_handler'] ) ) {