WordPress.org

Make WordPress Core

Ticket #12740: 12740.diff

File 12740.diff, 527 bytes (added by technosailor, 5 years ago)
  • wp-admin/includes/file.php

     
    443443        // Compute the URL 
    444444        $url = $uploads['url'] . "/$filename"; 
    445445 
    446         $return = apply_filters( 'wp_handle_upload', array( 'file' => $new_file, 'url' => $url, 'type' => $type ) ); 
     446        $return = apply_filters( 'wp_handle_sideload', array( 'file' => $new_file, 'url' => $url, 'type' => $type ) ); 
    447447 
    448448        return $return; 
    449449}