Make WordPress Core


Ignore:
Timestamp:
08/06/2026 07:42:30 PM (7 weeks ago)
Author:
desrosj
Message:

Revert 61300 from the 6.0 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/6.0/src/wp-includes/user.php

    r63100 r63101  
    153153                                /* translators: %s: User name. */
    154154                                __( '<strong>Error</strong>: The username <strong>%s</strong> is not registered on this site. If you are unsure of your username, try your email address instead.' ),
    155                                 esc_html( $username )
     155                                $username
    156156                        )
    157157                );
    … …  
    178178                                /* translators: %s: User name. */
    179179                                __( '<strong>Error</strong>: The password you entered for the username %s is incorrect.' ),
    180                                 '<strong>' . esc_html( $username ) . '</strong>'
     180                                '<strong>' . $username . '</strong>'
    181181                        ) .
    182182                        ' <a href="' . wp_lostpassword_url() . '">' .
    … …  
    250250                                /* translators: %s: Email address. */
    251251                                __( '<strong>Error</strong>: The password you entered for the email address %s is incorrect.' ),
    252                                 '<strong>' . esc_html( $email ) . '</strong>'
     252                                '<strong>' . $email . '</strong>'
    253253                        ) .
    254254                        ' <a href="' . wp_lostpassword_url() . '">' .
    … …  
    33143314                                /* translators: %s: Link to the login page. */
    33153315                                __( '<strong>Error:</strong> This email address is already registered. <a href="%s">Log in</a> with this address or choose another one.' ),
    3316                                 esc_url( wp_login_url() )
     3316                                wp_login_url()
    33173317                        )
    33183318                );
    … …  
    33623362                                /* translators: %s: Admin email address. */
    33633363                                __( '<strong>Error</strong>: Could not register you&hellip; please contact the <a href="mailto:%s">site admin</a>!' ),
    3364                                 esc_attr( get_option( 'admin_email' ) )
     3364                                get_option( 'admin_email' )
    33653365                        )
    33663366                );
    … …  
    35853585 * @since 3.0.0
    35863586 * @since 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific.
    3587  * @since 7.0.3 Added the `$user_id` parameter, which is sent with the `personal_options_update` action.
    3588  *
    3589  * @param int $user_id Optional. The ID of the user whose email is being changed. Defaults to `$_POST['user_id']` if set, otherwise 0.
    35903587 *
    35913588 * @global WP_Error $errors WP_Error object.
    35923589 */
    3593 function send_confirmation_on_profile_email( $user_id = 0 ) {
     3590function send_confirmation_on_profile_email() {
    35943591        global $errors;
    3595 
    3596         // Maintain backward compatibility for those relying on a check based on $_POST['user_id'].
    3597         if ( ! $user_id && isset( $_POST['user_id'] ) ) {
    3598                 $user_id = (int) $_POST['user_id'];
    3599         }
    36003592
    36013593        $current_user = wp_get_current_user();
    … …  
    36043596        }
    36053597
    3606         if ( 0 === $current_user->ID || $current_user->ID !== (int) $user_id ) {
     3598        if ( $current_user->ID != $_POST['user_id'] ) {
    36073599                return false;
    36083600        }
    … …  
    36183610                        );
    36193611
    3620                         $_POST['email'] = addslashes( $current_user->user_email );
    36213612                        return;
    36223613                }
    … …  
    36323623                        delete_user_meta( $current_user->ID, '_new_email' );
    36333624
    3634                         $_POST['email'] = addslashes( $current_user->user_email );
    36353625                        return;
    36363626                }
Note: See TracChangeset for help on using the changeset viewer.