Make WordPress Core

Changeset 56480


Ignore:
Timestamp:
08/28/2023 02:35:50 PM (11 months ago)
Author:
SergeyBiryukov
Message:

XML-RPC: Remove unused wpdb global in wp_xmlrpc_server::mw_newMediaObject().

Follow-up to [2676], [4961], [5008], [24716], [34578].

Props upadalavipul.
See #59185.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r56245 r56480  
    63716371     * @since 1.5.0
    63726372     *
    6373      * @global wpdb $wpdb WordPress database abstraction object.
    6374      *
    63756373     * @param array $args {
    63766374     *     Method arguments. Note: arguments must be ordered as documented.
     
    63846382     */
    63856383    public function mw_newMediaObject( $args ) {
    6386         global $wpdb;
    6387 
    63886384        $username = $this->escape( $args[1] );
    63896385        $password = $this->escape( $args[2] );
Note: See TracChangeset for help on using the changeset viewer.