XML-RPC: Remove unused `wpdb` global in `wp_xmlrpc_server::mw_newMediaObject()`.
Follow-up to [2676], [4961], [5008], [24716], [34578]. Props upadalavipul. See #59185. Built from https://develop.svn.wordpress.org/trunk@56480 git-svn-id: http://core.svn.wordpress.org/trunk@55992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6a216a567c
commit
1d7eb16bc7
|
@ -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];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.4-alpha-56479';
|
||||
$wp_version = '6.4-alpha-56480';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue