From 3cf6f5e450a3cc9a667e979e931923653a97a56c Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Thu, 10 May 2018 10:19:14 -0700 Subject: [PATCH] Use a strict check --- lib/rest-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rest-api.php b/lib/rest-api.php index 91861fe767a30b..0ba2ea7649f22f 100644 --- a/lib/rest-api.php +++ b/lib/rest-api.php @@ -430,7 +430,7 @@ function gutenberg_handle_early_callback_checks( $response, $handler, $request ) '/wp/v2/pages', '/wp/v2/users', ); - if ( in_array( $request->get_route(), $routes ) ) { + if ( in_array( $request->get_route(), $routes, true ) ) { $can_view_authors = false; $can_unbounded_query = false; $types = get_post_types( array( 'show_in_rest' => true ), 'objects' );