Make WordPress Core

Ticket #16849: 16849.2.patch

File 16849.2.patch, 843 bytes (added by iandunn, 11 years ago)
  • src/wp-admin/includes/file.php

     
    239239        }
    240240
    241241        $file = apply_filters( 'wp_handle_upload_prefilter', $file );
     242        $overrides = apply_filters( 'wp_handle_upload_overrides', $overrides );
    242243
    243244        // You may define your own function and pass the name in $overrides['upload_error_handler']
    244245        $upload_error_handler = 'wp_handle_upload_error';
     
    377378                }
    378379        }
    379380
     381        $file = apply_filters( 'wp_handle_sideload_prefilter', $file );
     382        $overrides = apply_filters( 'wp_handle_sideload_overrides', $overrides );
     383
    380384        // You may define your own function and pass the name in $overrides['upload_error_handler']
    381385        $upload_error_handler = 'wp_handle_upload_error';
    382386