WordPress.org

Make WordPress Core

Ticket #22858: user.diff

File user.diff, 414 bytes (added by n7studios, 16 months ago)
  • user.php

     
    14521452 
    14531453        // First, get all of the original fields 
    14541454        $user_obj = get_userdata( $ID ); 
     1455        if (!$user_obj) return new WP_Error('invalid_user_ID', __('<strong>ERROR</strong>: Invalid user ID. User could not be updated.')); 
    14551456 
    14561457        $user = $user_obj->to_array(); 
    14571458