WordPress.org

Make WordPress Core

Ticket #16849: 16849.patch

File 16849.patch, 513 bytes (added by jakub.tyrcha, 10 years ago)
  • wp-admin/includes/file.php

     
    236236        }
    237237
    238238        $file = apply_filters( 'wp_handle_upload_prefilter', $file );
     239        $overrides = apply_filters( 'wp_handle_upload_overrides', $overrides );
    239240
    240241        // You may define your own function and pass the name in $overrides['upload_error_handler']
    241242        $upload_error_handler = 'wp_handle_upload_error';