Skip to content

Commit

Permalink
XML-RPC: Remove unused wpdb global in `wp_xmlrpc_server::mw_newMedi…
Browse files Browse the repository at this point in the history
…aObject()`.

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
  • Loading branch information
SergeyBiryukov committed Aug 28, 2023
1 parent 13becfa commit 7cf0516
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/wp-includes/class-wp-xmlrpc-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -6370,8 +6370,6 @@ public function mw_getCategories( $args ) {
*
* @since 1.5.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param array $args {
* Method arguments. Note: arguments must be ordered as documented.
*
Expand All @@ -6383,8 +6381,6 @@ public function mw_getCategories( $args ) {
* @return array|IXR_Error
*/
public function mw_newMediaObject( $args ) {
global $wpdb;

$username = $this->escape( $args[1] );
$password = $this->escape( $args[2] );
$data = $args[3];
Expand Down

0 comments on commit 7cf0516

Please sign in to comment.