WordPress.org

Make WordPress Core

Ticket #19656: 19656.patch

File 19656.patch, 490 bytes (added by boonebgorges, 3 years ago)
  • wp-includes/user.php

     
    13981398 * @return int The updated user's ID. 
    13991399 */ 
    14001400function wp_update_user($userdata) { 
     1401        if ( isset( $userdata['data'] ) && is_object( $userdata['data'] ) ) { 
     1402                $userdata = get_object_vars( $userdata['data'] ); 
     1403        } 
     1404 
    14011405        $ID = (int) $userdata['ID']; 
    14021406 
    14031407        // First, get all of the original fields