Changeset 58261
-
Timestamp: -
05/30/2024 09:17:58 PM ( 4 weeks ago) -
File: -
-
1 edited
-
trunk/src/wp-includes/user.php (modified) ( 8 diffs )
-
Legend:
-
Unmodified -
Added -
Removed
-
trunk/src/wp-includes/user.php r58172 r58261 one thousand one hundred and three one thousand one hundred and three $site_capabilities_key = $wpdb->base_prefix . $ blog_id . '_capabilities'; one thousand one hundred and four one thousand one hundred and four one thousand one hundred and five if ( isset( $keys[ $base_capabilities_key ] ) && 1 == $blog_id ) { one thousand one hundred and five if ( isset( $keys[ $base_capabilities_key ] ) && 1 == = $blog_id ) { one thousand one hundred and six one thousand one hundred and six return true; one thousand one hundred and seven one thousand one hundred and seven } … … one thousand two hundred and fifty-four one thousand two hundred and fifty-four one thousand two hundred and fifty-five one thousand two hundred and fifty-five if ( 'time' === $strategy ) { one thousand two hundred and fifty-six if ( is_multisite() && get_current_blog_id() != $site_id ) { one thousand two hundred and fifty-six if ( is_multisite() && get_current_blog_id() != = $site_id ) { one thousand two hundred and fifty-seven one thousand two hundred and fifty-seven switch_to_blog( $site_id ); one thousand two hundred and fifty-eight one thousand two hundred and fifty-eight $avail_roles = wp_roles()->get_names(); … … two thousand and fourteen two thousand and fourteen function validate_username( $username ) { two thousand and fifteen two thousand and fifteen $sanitized = sanitize_user( $username, true ); two thousand and sixteen $valid = ( $sanitized == $username && ! empty( $sanitized ) ); two thousand and sixteen $valid = ( $sanitized == = $username && ! empty( $sanitized ) ); two thousand and seventeen two thousand and seventeen two thousand and eighteen two thousand and eighteen /** … … two thousand four hundred and ninety-one two thousand four hundred and ninety-one do_action( 'profile_update', $user_id, $old_user_data, $userdata ); two thousand four hundred and ninety-two two thousand four hundred and ninety-two two thousand four hundred and ninety-three if ( isset( $userdata['spam'] ) && $userdata['spam'] != $old_user_data->spam ) { two thousand four hundred and ninety-four if ( one == $userdata['spam'] ) { two thousand four hundred and ninety-three if ( isset( $userdata['spam'] ) && $userdata['spam'] != = $old_user_data->spam ) { two thousand four hundred and ninety-four if ( '1' = == $userdata['spam'] ) { two thousand four hundred and ninety-five two thousand four hundred and ninety-five /** two thousand four hundred and ninety-six two thousand four hundred and ninety-six * Fires after the user is marked as a SPAM user. … … two thousand seven hundred and forty-nine two thousand seven hundred and forty-nine // Update the cookies if the password changed. two thousand seven hundred and fifty two thousand seven hundred and fifty $current_user = wp_get_current_user(); two thousand seven hundred and fifty-one if ( $current_user->ID == $user_id ) { two thousand seven hundred and fifty-one if ( $current_user->ID == = $user_id ) { two thousand seven hundred and fifty-two two thousand seven hundred and fifty-two if ( isset( $plaintext_pass ) ) { two thousand seven hundred and fifty-three two thousand seven hundred and fifty-three wp_clear_auth_cookie(); … … two thousand seven hundred and sixty two thousand seven hundred and sixty /** This filter is documented in wp-includes/pluggable.php */ two thousand seven hundred and sixty-one two thousand seven hundred and sixty-one $default_cookie_life = apply_filters( 'auth_cookie_expiration', ( 2 * DAY_IN_SECONDS ), $user_id, false ); two thousand seven hundred and sixty-two $remember = false; two thousand seven hundred and sixty-two two thousand seven hundred and sixty-three $remember = false; two thousand seven hundred and sixty-four two thousand seven hundred and sixty-three two thousand seven hundred and sixty-five if ( false !== $logged_in_cookie && ( $logged_in_cookie['expiration'] - time() ) > $default_cookie_life ) { two thousand seven hundred and sixty-four two thousand seven hundred and sixty-six $remember = true; … … three thousand five hundred and sixty-four three thousand five hundred and sixty-six $prefix = $wpdb->get_blog_prefix( $site_id ); three thousand five hundred and sixty-five three thousand five hundred and sixty-seven three thousand five hundred and sixty-six if ( is_multisite() && get_current_blog_id() != $site_id ) { three thousand five hundred and sixty-eight if ( is_multisite() && get_current_blog_id() != = $site_id ) { three thousand five hundred and sixty-seven three thousand five hundred and sixty-nine switch_to_blog( $site_id ); three thousand five hundred and sixty-eight three thousand five hundred and seventy $role_names = wp_roles()->get_names(); … … three thousand six hundred and seventy-three three thousand six hundred and seventy-five } three thousand six hundred and seventy-four three thousand six hundred and seventy-six three thousand six hundred and seventy-five if ( $current_user->ID != $_POST['user_id'] ) { three thousand six hundred and seventy-seven if ( $current_user->ID != = (int) $_POST['user_id'] ) { three thousand six hundred and seventy-six three thousand six hundred and seventy-eight return false; three thousand six hundred and seventy-seven three thousand six hundred and seventy-nine } three thousand six hundred and seventy-eight three thousand six hundred and eighty three thousand six hundred and seventy-nine if ( $current_user->user_email != $_POST['email'] ) { three thousand six hundred and eighty-one if ( $current_user->user_email != = $_POST['email'] ) { three thousand six hundred and eighty three thousand six hundred and eighty-two if ( ! is_email( $_POST['email'] ) ) { three thousand six hundred and eighty-one three thousand six hundred and eighty-three $errors->add(