Revert change for theme support on permalinks

This commit is contained in:
Tom Cafferkey 2021-11-05 15:35:08 +00:00
parent 2003a7813e
commit 5cdc6c86f6
1 changed files with 1 additions and 1 deletions

View File

@ -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 = wc_current_theme_supports_woocommerce_or_fse() ? 'yes' : 'no';
$theme_support = current_theme_supports( 'woocommerce' ) ? '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' );
}