diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 78288bd278..78581cbfab 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -5737,11 +5737,10 @@ class wp_xmlrpc_server extends IXR_Server { 'id' => strval( $id ), 'file' => $name, 'url' => $upload[ 'url' ], - 'type' => $type + 'type' => $upload[ 'type' ] ); - /** This filter is documented in wp-admin/includes/file.php */ - return apply_filters( 'wp_handle_upload', $struct, 'upload' ); + return $struct; } /* MovableType API functions diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 2da3569ff1..bad987c9f1 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1993,7 +1993,8 @@ function wp_upload_bits( $name, $deprecated, $bits, $time = null ) { // Compute the URL $url = $upload['url'] . "/$filename"; - return array( 'file' => $new_file, 'url' => $url, 'error' => false ); + /** This filter is documented in wp-admin/includes/file.php */ + return apply_filters( 'wp_handle_upload', array( 'file' => $new_file, 'url' => $url, 'type' => $wp_filetype['type'], 'error' => false ), 'sideload' ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index ea23c84d11..c820deef89 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34256'; +$wp_version = '4.4-alpha-34257'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.