Plugin Updates
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
use Automattic\Jetpack\Constants;
|
||||
use Automattic\WooCommerce\Admin\Notes\Notes;
|
||||
use Automattic\WooCommerce\Internal\TransientFiles\TransientFilesEngine;
|
||||
use Automattic\WooCommerce\Internal\DataStores\Orders\{ CustomOrdersTableController, DataSynchronizer, OrdersTableDataStore };
|
||||
use Automattic\WooCommerce\Internal\Features\FeaturesController;
|
||||
use Automattic\WooCommerce\Internal\ProductAttributesLookup\DataRegenerator;
|
||||
@@ -243,6 +244,9 @@ class WC_Install {
|
||||
'8.6.0' => array(
|
||||
'wc_update_860_remove_recommended_marketing_plugins_transient',
|
||||
),
|
||||
'8.7.0' => array(
|
||||
'wc_update_870_prevent_listing_of_transient_files_directory',
|
||||
),
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -456,6 +460,11 @@ class WC_Install {
|
||||
// plugin version update. We base plugin age off of this value.
|
||||
add_option( 'woocommerce_admin_install_timestamp', time() );
|
||||
|
||||
// Force a flush of rewrite rules even if the corresponding hook isn't initialized yet.
|
||||
if ( ! has_action( 'woocommerce_flush_rewrite_rules' ) ) {
|
||||
flush_rewrite_rules();
|
||||
}
|
||||
|
||||
/**
|
||||
* Flush the rewrite rules after install or update.
|
||||
*
|
||||
@@ -557,6 +566,7 @@ class WC_Install {
|
||||
WC()->query->add_endpoints();
|
||||
WC_API::add_endpoint();
|
||||
WC_Auth::add_endpoint();
|
||||
TransientFilesEngine::add_endpoint();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user