1823 | | if ( ! empty( $userdata['user_pass'] ) && $userdata['user_pass'] !== $user_obj->user_pass ) { |
1824 | | // If password is changing, hash it now |
| 1823 | if ( empty( $wp_hasher ) ) { |
| 1824 | require_once( ABSPATH . WPINC . '/class-phpass.php'); |
| 1825 | // By default, use the portable hash from phpass. |
| 1826 | $wp_hasher = new PasswordHash( 8, true ); |
| 1827 | } |
| 1828 | |
| 1829 | if ( ! empty( $userdata['user_pass'] ) && false === $wp_hasher->CheckPassword( $userdata['user_pass'], $user_obj->user_pass ) ) { |
| 1830 | // If password is changing, hash it now. |