Changeset 31269
- Timestamp:
- 01/22/2015 02:45:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r31188 r31269 1976 1976 } 1977 1977 1978 $ID = (int) $userdata['ID']; 1978 $ID = isset( $userdata['ID'] ) ? (int) $userdata['ID'] : 0; 1979 if ( ! $ID ) { 1980 return new WP_Error( 'invalid_user_id', __( 'Invalid user ID.' ) ); 1981 } 1979 1982 1980 1983 // First, get all of the original fields 1981 1984 $user_obj = get_userdata( $ID ); 1982 if ( ! $user_obj ) 1985 if ( ! $user_obj ) { 1983 1986 return new WP_Error( 'invalid_user_id', __( 'Invalid user ID.' ) ); 1987 } 1984 1988 1985 1989 $user = $user_obj->to_array();
Note: See TracChangeset
for help on using the changeset viewer.