Ticket #29880: 29880.2.diff
File 29880.2.diff, 1.1 KB (added by , 10 years ago) |
---|
-
src/wp-includes/user.php
1648 1648 * @param array $userdata { 1649 1649 * An array, object, or WP_User object of user data arguments. 1650 1650 * 1651 * @type int $ID User ID. If supplied, the user will be updated. 1651 * @type int $ID User ID. If supplied, the user will be updated. This is 1652 * deprecated. 1652 1653 * @type string $user_pass The plain-text user password. 1653 1654 * @type string $user_login The user's login username. 1654 1655 * @type string $user_nicename The URL-friendly user name. … … 1683 1684 } 1684 1685 // Are we updating or creating? 1685 1686 if ( ! empty( $userdata['ID'] ) ) { 1687 _deprecated_argument( __FUNCTION__, '4.1', __( 'Supplying a user ID to wp_insert_user to update an existing user is deprecated. Use wp_update_user() instead.' ) ); 1686 1688 $ID = (int) $userdata['ID']; 1687 1689 $update = true; 1688 1690 $old_user_data = WP_User::get_data_by( 'id', $ID );