Ticket #29880: 29880.3.patch
File 29880.3.patch, 1.1 KB (added by , 9 years ago) |
---|
-
src/wp-includes/user-functions.php
1235 1235 * @param array|object|WP_User $userdata { 1236 1236 * An array, object, or WP_User object of user data arguments. 1237 1237 * 1238 * @type int $ID User ID. If supplied, the user will be updated. 1238 * @type int $ID User ID. If supplied, the user will be updated. This is deprecated since 4.4. 1239 1239 * @type string $user_pass The plain-text user password. 1240 1240 * @type string $user_login The user's login username. 1241 1241 * @type string $user_nicename The URL-friendly user name. … … 1278 1278 1279 1279 // Are we updating or creating? 1280 1280 if ( ! empty( $userdata['ID'] ) ) { 1281 _deprecated_argument( __FUNCTION__, '4.4', __( 'Supplying a user ID to wp_insert_user to update an existing user is deprecated. Use wp_update_user() instead.' ) ); 1281 1282 $ID = (int) $userdata['ID']; 1282 1283 $update = true; 1283 1284 $old_user_data = get_userdata( $ID );