Skip to content

Commit

Permalink
Preserve the box rocket_activation_notice with update (#6120)
Browse files Browse the repository at this point in the history
  • Loading branch information
engahmeds3ed authored Sep 19, 2023
1 parent 7b0a3f1 commit ffa71e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion inc/Engine/Deactivation/Deactivation.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public static function deactivate_plugin() {
delete_site_transient( 'wp_rocket_update_data' );

// Delete user metadata.
delete_user_meta( get_current_user_id(), 'rocket_boxes' );
rocket_renew_box( 'preload_notice' );

// Unschedule WP Cron events.
wp_clear_scheduled_hook( 'rocket_cache_dir_size_check' );
Expand Down
2 changes: 0 additions & 2 deletions inc/admin/upgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ function rocket_upgrader() {
if ( did_action( 'wp_rocket_first_install' ) || did_action( 'wp_rocket_upgrade' ) ) {
flush_rocket_htaccess();

rocket_renew_all_boxes( 0, [ 'rocket_warning_plugin_modification' ] );

$options = get_option( WP_ROCKET_SLUG ); // do not use get_rocket_option() here.
$options['version'] = WP_ROCKET_VERSION;

Expand Down

0 comments on commit ffa71e1

Please sign in to comment.