From a839a163f79a70026ac36542953761f6af23761b Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Thu, 28 Nov 2024 09:15:25 +0100 Subject: [PATCH] Remove useless check --- .../wordpress-6.8/class-gutenberg-rest-user-controller.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/compat/wordpress-6.8/class-gutenberg-rest-user-controller.php b/lib/compat/wordpress-6.8/class-gutenberg-rest-user-controller.php index 3dbc966aae9edb..221d5fd757e9c7 100644 --- a/lib/compat/wordpress-6.8/class-gutenberg-rest-user-controller.php +++ b/lib/compat/wordpress-6.8/class-gutenberg-rest-user-controller.php @@ -46,9 +46,7 @@ function gutenberg_modify_user_query_args( $prepared_args, $request ) { ); $search_columns = array_map( function ( $column ) use ( $search_columns_mapping ) { - return isset( $search_columns_mapping[ $column ] ) - ? $search_columns_mapping[ $column ] - : $column; + return $search_columns_mapping[ $column ]; }, $search_columns );