Remove unwanted transient then were not set

This commit is contained in:
Shiva Poudel 2017-12-18 20:03:08 +05:45
parent df2aded066
commit 0432b58182
2 changed files with 0 additions and 3 deletions

View File

@ -83,7 +83,6 @@ if ( ! class_exists( 'WC_Admin_Settings', false ) ) :
// Clear any unwanted data and flush rules.
add_option( 'woocommerce_queue_flush_rewrite_rules', 'true' );
delete_transient( 'woocommerce_cache_excluded_uris' );
WC()->query->init_query_vars();
WC()->query->add_endpoints();

View File

@ -402,8 +402,6 @@ class WC_Install {
foreach ( $pages as $key => $page ) {
wc_create_page( esc_sql( $page['name'] ), 'woocommerce_' . $key . '_page_id', $page['title'], $page['content'], ! empty( $page['parent'] ) ? wc_get_page_id( $page['parent'] ) : '' );
}
delete_transient( 'woocommerce_cache_excluded_uris' );
}
/**