Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
david-szabo97 committed Nov 18, 2020
1 parent f85b712 commit a9c24a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/template-parts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit a9c24a3

Please sign in to comment.