From a9c24a3cc7fa3bc0c63b77f29d9eb8b891d521fa Mon Sep 17 00:00:00 2001 From: David Szabo Date: Tue, 17 Nov 2020 16:12:24 +0100 Subject: [PATCH] Fix linter errors --- lib/template-parts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/template-parts.php b/lib/template-parts.php index 59a23a0649f968..f2f118f90e675d 100644 --- a/lib/template-parts.php +++ b/lib/template-parts.php @@ -213,13 +213,13 @@ function filter_rest_prepare_wp_template_part( $response ) { if ( $wp_themes && is_array( $wp_themes ) ) { $wp_theme_slugs = array_column( $wp_themes, 'slug' ); - $file_based = in_array( 'wp_file_based', $wp_theme_slugs ); + $file_based = in_array( 'wp_file_based', $wp_theme_slugs, true ); $response->data['file_based'] = $file_based; $theme_slug = array_filter( $wp_theme_slugs, function( $slug ) { - return $slug !== 'wp_file_based'; + return 'wp_file_based' !== $slug; } ); if ( $theme_slug ) {