mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
XML-RPC: Remove unused wpdb global in wp_xmlrpc_server::mw_newMediaObject().
Follow-up to [2676], [4961], [5008], [24716], [34578]. Props upadalavipul. See #59185. git-svn-id: https://develop.svn.wordpress.org/trunk@56480 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
13becfa68b
commit
7cf05166a6
@ -6370,8 +6370,6 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
*
|
||||
* @since 1.5.0
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param array $args {
|
||||
* Method arguments. Note: arguments must be ordered as documented.
|
||||
*
|
||||
@ -6383,8 +6381,6 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
* @return array|IXR_Error
|
||||
*/
|
||||
public function mw_newMediaObject( $args ) {
|
||||
global $wpdb;
|
||||
|
||||
$username = $this->escape( $args[1] );
|
||||
$password = $this->escape( $args[2] );
|
||||
$data = $args[3];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user