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:
Sergey Biryukov 2023-08-28 14:35:50 +00:00
parent 13becfa68b
commit 7cf05166a6

View File

@ -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];