Skip to content

Commit

Permalink
fix #400
Browse files Browse the repository at this point in the history
  • Loading branch information
inc2734 committed Oct 24, 2024
1 parent 98f5848 commit 0d1d14f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions App/Controller/Manager/Model/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ function ( $template ) {
// Disable WooCommerce templates if WooCommerce is not enabled.
$templates = array_filter(
$templates,
function( $template ) {
if ( ! in_array( 'product', $template['postTypes'] ) ) {
function ( $template ) {
if ( ! in_array( 'product', $template['postTypes'] ), true ) {
return true;
}

Expand All @@ -412,7 +412,6 @@ function( $template ) {
$templates = array_values( $templates );
wp_cache_set( $cache_key, $templates );

error_log( print_r( $templates, true ) . "\n", 3, __DIR__ . '/error_log' );
return $templates;
}

Expand Down

0 comments on commit 0d1d14f

Please sign in to comment.