Uploader: Fire 'wp_handle_upload' in wp_upload_bits(). Thusly, the filter in wp_xmlrpc_server::mw_newMediaObject() is redundant.

Props dllh.
Fixes #33539.


git-svn-id: https://develop.svn.wordpress.org/trunk@34257 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-09-17 04:46:00 +00:00
parent a1805ecada
commit 79656b5fdd
2 changed files with 4 additions and 4 deletions
+2 -3
View File
@@ -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