WordPress.org

Make WordPress Core

Ticket #21495: 21495.2.patch

File 21495.2.patch, 531 bytes (added by SergeyBiryukov, 6 years ago)

Removed superfluous !isset() check

  • wp-includes/user.php

     
    12551255                $old_user_data = WP_User::get_data_by( 'id', $ID );
    12561256        } else {
    12571257                $update = false;
     1258
     1259                // Check for a password
     1260                if ( empty( $user_pass ) )
     1261                        return new WP_Error( 'empty_user_password', __( 'Cannot create a user with an empty password.' ) );
     1262
    12581263                // Hash the password
    12591264                $user_pass = wp_hash_password($user_pass);
    12601265        }