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..b1c333338c61e9 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 @@ -45,7 +45,7 @@ function gutenberg_modify_user_query_args( $prepared_args, $request ) { 'name' => 'display_name', ); $search_columns = array_map( - function ( $column ) use ( $search_columns_mapping ) { + static function ( $column ) use ( $search_columns_mapping ) { return isset( $search_columns_mapping[ $column ] ) ? $search_columns_mapping[ $column ] : $column;