--- a/wp/wp-admin/network/users.php Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-admin/network/users.php Tue Sep 27 16:37:53 2022 +0200
@@ -29,12 +29,17 @@
$id = (int) $_GET['id'];
if ( $id > 1 ) {
$_POST['allusers'] = array( $id ); // confirm_delete_users() can only handle arrays.
- $title = __( 'Users' );
- $parent_file = 'users.php';
+
+ // Used in the HTML title tag.
+ $title = __( 'Users' );
+ $parent_file = 'users.php';
+
require_once ABSPATH . 'wp-admin/admin-header.php';
+
echo '<div class="wrap">';
confirm_delete_users( $_POST['allusers'] );
echo '</div>';
+
require_once ABSPATH . 'wp-admin/admin-footer.php';
} else {
wp_redirect( network_admin_url( 'users.php' ) );
@@ -59,12 +64,17 @@
if ( ! current_user_can( 'delete_users' ) ) {
wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
}
+
+ // Used in the HTML title tag.
$title = __( 'Users' );
$parent_file = 'users.php';
+
require_once ABSPATH . 'wp-admin/admin-header.php';
+
echo '<div class="wrap">';
confirm_delete_users( $_POST['allusers'] );
echo '</div>';
+
require_once ABSPATH . 'wp-admin/admin-footer.php';
exit;
@@ -206,6 +216,8 @@
wp_redirect( add_query_arg( 'paged', $total_pages ) );
exit;
}
+
+// Used in the HTML title tag.
$title = __( 'Users' );
$parent_file = 'users.php';