Make WordPress Core

Ticket #29880: 29880.2.diff

File 29880.2.diff, 1.1 KB (added by leewillis77, 10 years ago)
  • src/wp-includes/user.php

     
    16481648 * @param array $userdata {
    16491649 *     An array, object, or WP_User object of user data arguments.
    16501650 *
    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.
    16521653 *     @type string      $user_pass       The plain-text user password.
    16531654 *     @type string      $user_login      The user's login username.
    16541655 *     @type string      $user_nicename   The URL-friendly user name.
     
    16831684        }
    16841685        // Are we updating or creating?
    16851686        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.' ) );
    16861688                $ID = (int) $userdata['ID'];
    16871689                $update = true;
    16881690                $old_user_data = WP_User::get_data_by( 'id', $ID );