Merge pull request #18026 from woocommerce/add/clear-addons-transients

Clear addons transients on update to 3.3.0
This commit is contained in:
Jonathan Belcher 2017-12-05 14:41:21 -05:00 committed by GitHub
commit 38984b03ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -100,6 +100,7 @@ class WC_Install {
'wc_update_330_image_options',
'wc_update_330_product_stock_status',
'wc_update_330_set_default_product_cat',
'wc_update_330_clear_transients',
'wc_update_330_db_version',
),
);

View File

@ -1551,3 +1551,11 @@ function wc_update_330_product_stock_status() {
function wc_update_330_db_version() {
WC_Install::update_db_version( '3.3.0' );
}
/**
* Clear addons page transients
*/
function wc_update_330_clear_transients() {
delete_transient( 'wc_addons_sections' );
delete_transient( 'wc_addons_featured' );
}