Skip to content

Commit

Permalink
Use a strict check
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed May 10, 2018
1 parent 0205923 commit 3cf6f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down

0 comments on commit 3cf6f5e

Please sign in to comment.