mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user