You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 03a0835
Browse filesBrowse the repository at this point in the historyBrowse files
Security: Backport the WordPress 7.1.4 security fixes to the 4.8 branch.
- Users: Escape user login
- Upgrade/Install: Improve the handling of the upgrade working directory.
Merges [64873], [64877] to the 4.8 branch.
Props xknown, jeremyfelt, jorbin, rfaile313, umut3806, marcs0h.
git-svn-id: https://develop.svn.wordpress.org/branches/4.8@64933 602fd350-edb4-49c9-b593-d223f7449a82
if ( ! current_user_can( 'delete_user', $delete_user->ID ) ) {
970
-
wp_die( sprintf( __( 'Warning! User %s cannot be deleted.' ), $delete_user->user_login ) );
970
+
wp_die( sprintf( __( 'Warning! User %s cannot be deleted.' ), esc_html( $delete_user->user_login ) ) );
971
971
}
972
972
973
973
if ( in_array( $delete_user->user_login, $site_admins ) ) {
974
-
wp_die( sprintf( __( 'Warning! User cannot be deleted. The user %s is a network administrator.' ), '<em>' . $delete_user->user_login . '</em>' ) );
974
+
wp_die( sprintf( __( 'Warning! User cannot be deleted. The user %s is a network administrator.' ), '<em>' . esc_html( $delete_user->user_login ) . '</em>' ) );
echo"<li>" . sprintf(__('ID #%1$s: %2$s <strong>Sorry, you are not allowed to remove this user.</strong>'), $id, $user->user_login) . "</li>\n";
378
+
echo"<li>" . sprintf(__('ID #%1$s: %2$s <strong>Sorry, you are not allowed to remove this user.</strong>'), $id, esc_html( $user->user_login )) . "</li>\n";
0 commit comments