WordPress.org

Make WordPress Core

Ticket #33539: wp_upload_bits.patch

File wp_upload_bits.patch, 1.1 KB (added by dllh, 4 years ago)
  • wp-includes/class-wp-xmlrpc-server.php

     
    57375737                        'id'   => strval( $id ),
    57385738                        'file' => $name,
    57395739                        'url'  => $upload[ 'url' ],
    5740                         'type' => $type
     5740                        'type' => $upload[ 'type' ]
    57415741                );
    57425742
    5743                 /** This filter is documented in wp-admin/includes/file.php */
    5744                 return apply_filters( 'wp_handle_upload', $struct, 'upload' );
     5743                return $struct;
    57455744        }
    57465745
    57475746        /* MovableType API functions
  • wp-includes/functions.php

     
    20032003        // Compute the URL
    20042004        $url = $upload['url'] . "/$filename";
    20052005
     2006        return apply_filters( 'wp_handle_upload', array( 'file' => $new_file, 'url' => $url, 'type' => $wp_filetype['type'], 'error' => false ), 'sideload' );
    20062007        return array( 'file' => $new_file, 'url' => $url, 'error' => false );
    20072008}
    20082009