diff -r 48c4eec2b7e6 -r 8c2e4d02f4ef wp/wp-admin/user-edit.php --- a/wp/wp-admin/user-edit.php Fri Sep 05 18:40:08 2025 +0200 +++ b/wp/wp-admin/user-edit.php Fri Sep 05 18:52:52 2025 +0200 @@ -14,7 +14,7 @@ $action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : ''; $user_id = ! empty( $_REQUEST['user_id'] ) ? absint( $_REQUEST['user_id'] ) : 0; -$wp_http_referer = ! empty( $_REQUEST['wp_http_referer'] ) ? sanitize_text_field( $_REQUEST['wp_http_referer'] ) : ''; +$wp_http_referer = ! empty( $_REQUEST['wp_http_referer'] ) ? sanitize_url( $_REQUEST['wp_http_referer'] ) : ''; $current_user = wp_get_current_user(); @@ -214,12 +214,16 @@ if ( isset( $_GET['updated'] ) ) : if ( IS_PROFILE_PAGE ) : - $message = '' . __( 'Profile updated.' ) . ''; + $message = '
' . __( 'Profile updated.' ) . '
'; else : - $message = '' . __( 'User updated.' ) . ''; + $message = '' . __( 'User updated.' ) . '
'; endif; if ( $wp_http_referer && ! str_contains( $wp_http_referer, 'user-new.php' ) && ! IS_PROFILE_PAGE ) : - $message .= '' . __( '← Go to Users' ) . ''; + $message .= sprintf( + '', + esc_url( wp_validate_redirect( sanitize_url( $wp_http_referer ), self_admin_url( 'users.php' ) ) ), + __( '← Go to Users' ) + ); endif; wp_admin_notice( $message, @@ -227,6 +231,7 @@ 'id' => 'message', 'dismissible' => true, 'additional_classes' => array( 'updated' ), + 'paragraph_wrap' => false, ) ); endif; @@ -261,7 +266,7 @@ - + @@ -291,7 +296,7 @@@@ -540,11 +545,13 @@ | |
-
ID === $current_user->ID ) : ?>
+
The new address will not become active until confirmed.' ); ?> + + You can change your profile picture on Gravatar.' ), - __( 'https://en.gravatar.com/' ) + /* translators: The localized Gravatar URL. */ + __( 'https://gravatar.com/' ) ); } else { $description = ''; @@ -826,7 +834,7 @@ do_action( 'wp_create_application_password_form', $profile_user ); ?> - + set the environment type accordingly to enable application passwords.' ), + __( 'If this is a development website, you can set the environment type accordingly to enable application passwords.' ), __( 'https://developer.wordpress.org/apis/wp-config-php/#wp-environment-type' ) ); ?> @@ -978,6 +986,8 @@ ?> + + |