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 1e4f5cb
Browse filesBrowse the repository at this point in the historyBrowse files
if ( ! current_user_can( 'delete_user', $delete_user->ID ) ) {
783
-
wp_die( sprintf( __( 'Warning! User %s cannot be deleted.' ), $delete_user->user_login ) );
783
+
wp_die( sprintf( __( 'Warning! User %s cannot be deleted.' ), esc_html( $delete_user->user_login ) ) );
784
784
}
785
785
786
786
if ( in_array( $delete_user->user_login, $site_admins ) ) {
787
-
wp_die( sprintf( __( 'Warning! User cannot be deleted. The user %s is a network administrator.' ), '<em>' . $delete_user->user_login . '</em>' ) );
787
+
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