Make WordPress Core

Ticket #22858: 22858.patch

File 22858.patch, 414 bytes (added by SergeyBiryukov, 12 years ago)

With proper formatting

  • wp-includes/user.php

     
    14521452
    14531453        // First, get all of the original fields
    14541454        $user_obj = get_userdata( $ID );
     1455        if ( ! $user_obj )
     1456                return new WP_Error( 'invalid_user_id', __( 'Invalid user ID.' ) );
    14551457
    14561458        $user = $user_obj->to_array();
    14571459