Changeset 63077 for branches/6.9/src/wp-includes/user.php
- Timestamp:
- 08/06/2026 05:32:00 PM (7 weeks ago)
- Location:
- branches/6.9
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/user.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.9
- Property svn:mergeinfo changed
/trunk merged: 62804,63059-63065,63067
- Property svn:mergeinfo changed
-
branches/6.9/src/wp-includes/user.php
r61137 r63077 187 187 /* translators: %s: User name. */ 188 188 __( '<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.' ), 189 $username189 esc_html( $username ) 190 190 ) 191 191 ); … … 214 214 /* translators: %s: User name. */ 215 215 __( '<strong>Error:</strong> The password you entered for the username %s is incorrect.' ), 216 '<strong>' . $username. '</strong>'216 '<strong>' . esc_html( $username ) . '</strong>' 217 217 ) . 218 218 ' <a href="' . wp_lostpassword_url() . '">' . … … 297 297 /* translators: %s: Email address. */ 298 298 __( '<strong>Error:</strong> The password you entered for the email address %s is incorrect.' ), 299 '<strong>' . $email. '</strong>'299 '<strong>' . esc_html( $email ) . '</strong>' 300 300 ) . 301 301 ' <a href="' . wp_lostpassword_url() . '">' . … … 3529 3529 /* translators: %s: Link to the login page. */ 3530 3530 __( '<strong>Error:</strong> This email address is already registered. <a href="%s">Log in</a> with this address or choose another one.' ), 3531 wp_login_url()3531 esc_url( wp_login_url() ) 3532 3532 ) 3533 3533 ); … … 3577 3577 /* translators: %s: Admin email address. */ 3578 3578 __( '<strong>Error:</strong> Could not register you… please contact the <a href="mailto:%s">site admin</a>!' ), 3579 get_option( 'admin_email')3579 esc_attr( get_option( 'admin_email' ) ) 3580 3580 ) 3581 3581 ); … … 3800 3800 * @since 3.0.0 3801 3801 * @since 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific. 3802 * @since 7.0.3 Added the `$user_id` parameter, which is sent with the `personal_options_update` action. 3803 * 3804 * @param int $user_id Optional. The ID of the user whose email is being changed. Defaults to `$_POST['user_id']` if set, otherwise 0. 3802 3805 * 3803 3806 * @global WP_Error $errors WP_Error object. 3804 3807 */ 3805 function send_confirmation_on_profile_email( ) {3808 function send_confirmation_on_profile_email( $user_id = 0 ) { 3806 3809 global $errors; 3810 3811 // Maintain backward compatibility for those relying on a check based on $_POST['user_id']. 3812 if ( ! $user_id && isset( $_POST['user_id'] ) ) { 3813 $user_id = absint( $_POST['user_id'] ); 3814 } 3807 3815 3808 3816 $current_user = wp_get_current_user(); … … 3811 3819 } 3812 3820 3813 if ( $current_user->ID !== (int) $_POST['user_id']) {3821 if ( 0 === $current_user->ID || $current_user->ID !== (int) $user_id ) { 3814 3822 return false; 3815 3823 } … … 3825 3833 ); 3826 3834 3835 $_POST['email'] = addslashes( $current_user->user_email ); 3827 3836 return; 3828 3837 } … … 3838 3847 delete_user_meta( $current_user->ID, '_new_email' ); 3839 3848 3849 $_POST['email'] = addslashes( $current_user->user_email ); 3840 3850 return; 3841 3851 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)