diff -r 34716fd837a4 -r be944660c56a wp/wp-admin/network/users.php
--- a/wp/wp-admin/network/users.php Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-admin/network/users.php Wed Sep 21 18:19:35 2022 +0200
@@ -26,7 +26,7 @@
check_admin_referer( 'deleteuser' );
- $id = intval( $_GET['id'] );
+ $id = (int) $_GET['id'];
if ( $id > 1 ) {
$_POST['allusers'] = array( $id ); // confirm_delete_users() can only handle arrays.
$title = __( 'Users' );
@@ -46,10 +46,10 @@
wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
}
- if ( ( isset( $_POST['action'] ) || isset( $_POST['action2'] ) ) && isset( $_POST['allusers'] ) ) {
+ if ( isset( $_POST['action'] ) && isset( $_POST['allusers'] ) ) {
check_admin_referer( 'bulk-users-network' );
- $doaction = -1 != $_POST['action'] ? $_POST['action'] : $_POST['action2'];
+ $doaction = $_POST['action'];
$userfunction = '';
foreach ( (array) $_POST['allusers'] as $user_id ) {
@@ -273,13 +273,18 @@
-
- " class="page-title-action">
+ ' . __( 'Search results for “%s”' ) . '', esc_html( $usersearch ) );
+ echo '';
+ printf(
+ /* translators: %s: Search query. */
+ __( 'Search results for: %s' ),
+ '' . esc_html( $usersearch ) . ''
+ );
+ echo '';
}
?>