PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.5.0
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.5.0
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | vendor/codeinwp/themeisle-sdk/src/Modules/Rollback.php +1 -17 3.10.113.5.0 View file →
@@ -97,9 +97,9 @@
97 97 * @return array Array of versions.
98 98 */
99 99 private function get_api_versions() {
100 100
101 - $cache_key = $this->product->get_cache_key();
101 + $cache_key = $this->product->get_key() . '_' . preg_replace( '/[^0-9a-zA-Z ]/m', '', $this->product->get_version() ) . 'versions';
102 102 $cache_versions = get_transient( $cache_key );
103 103 if ( false === $cache_versions ) {
104 104 $versions = $this->get_remote_versions();
105 105 set_transient( $cache_key, $versions, 5 * DAY_IN_SECONDS );
@@ -374,27 +374,11 @@
374 374 );
375 375 }
376 376
377 377 /**
378 - * Fires after the option has been updated.
379 - *
380 - * @param mixed $old_value The old option value.
381 - * @param mixed $value The new option value.
382 - * @param string $option Option name.
383 - */
384 - public function update_active_plugins_action( $old_value, $value, $option ) {
385 - delete_site_transient( 'update_plugins' );
386 - wp_cache_delete( 'plugins', 'plugins' );
387 - }
388 -
389 - /**
390 378 * Set the rollback hook. Strangely, this does not work if placed in the ThemeIsle_SDK_Rollback class, so it is being called from there instead.
391 379 */
392 380 public function add_hooks() {
393 381 add_action( 'admin_post_' . $this->product->get_key() . '_rollback', array( $this, 'start_rollback' ) );
394 382 add_action( 'admin_footer', array( $this, 'add_footer' ) );
395 -
396 - // This hook will be invoked after the plugin activation.
397 - // We use this to force an update of the cache so that Update is present immediate after a rollback.
398 - add_action( 'update_option_active_plugins', array( $this, 'update_active_plugins_action' ), 10, 3 );
399 383 }
400 384 }