Update theme_support check to include FSE enabled themes so that option woocommerce_queue_flush_rewrite_rules gets updated and run
This commit is contained in:
parent
c5e17812f0
commit
1e4f045b6a
|
@ -306,7 +306,7 @@ class WC_Post_Types {
|
|||
}
|
||||
|
||||
// If theme support changes, we may need to flush permalinks since some are changed based on this flag.
|
||||
$theme_support = current_theme_supports( 'woocommerce' ) ? 'yes' : 'no';
|
||||
$theme_support = wc_current_theme_supports_woocommerce_or_fse() ? 'yes' : 'no';
|
||||
if ( get_option( 'current_theme_supports_woocommerce' ) !== $theme_support && update_option( 'current_theme_supports_woocommerce', $theme_support ) ) {
|
||||
update_option( 'woocommerce_queue_flush_rewrite_rules', 'yes' );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue