Make WordPress Core

Ticket #59185: 59185.patch

File 59185.patch, 1.4 KB (added by upadalavipul, 3 months ago)

Added patch

  • wp-includes/class-wp-xmlrpc-server.php

     
    63706370         *
    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.
    63776375         *
     
    63836381         * @return array|IXR_Error
    63846382         */
    63856383        public function mw_newMediaObject( $args ) {
    6386                 global $wpdb;
    63876384
    63886385                $username = $this->escape( $args[1] );
    63896386                $password = $this->escape( $args[2] );
  • wp-includes/user.php

     
    29532953 *
    29542954 * @since 3.1.0
    29552955 *
    2956  * @global wpdb         $wpdb      WordPress database object for queries.
    29572956 * @global PasswordHash $wp_hasher Portable PHP password hashing framework instance.
    29582957 *
    29592958 * @param string $key       Hash to validate sending user's password.
     
    29612960 * @return WP_User|WP_Error WP_User object on success, WP_Error object for invalid or expired keys.
    29622961 */
    29632962function check_password_reset_key( $key, $login ) {
    2964         global $wpdb, $wp_hasher;
     2963        global $wp_hasher;
    29652964
    29662965        $key = preg_replace( '/[^a-z0-9]/i', '', $key );
    29672966