diff --git a/quick-cache-pro/includes/version-specific-upgrade.php b/quick-cache-pro/includes/version-specific-upgrade.php index aeea13ea..32ea841c 100644 --- a/quick-cache-pro/includes/version-specific-upgrade.php +++ b/quick-cache-pro/includes/version-specific-upgrade.php @@ -47,6 +47,7 @@ public function run_handlers() $this->from_lt_v140104(); $this->from_lt_v140605(); $this->from_lt_v140612(); + $this->from_lt_v140923(); } /* @@ -131,6 +132,20 @@ public function from_lt_v140612() } } } + + /* + * Upgrading from a version before we removed the WordPress version number from the Auto-Cache Engine User-Agent string. + */ + public function from_lt_v140923() + { + if(version_compare($this->prev_version, '140923', '<')) + { + $this->plugin->options['auto_cache_user_agent'] = $this->plugin->default_options['auto_cache_user_agent']; + + update_option(__NAMESPACE__.'_options', $this->plugin->options); + if(is_multisite()) update_site_option(__NAMESPACE__.'_options', $this->plugin->options); + } + } } } } \ No newline at end of file diff --git a/quick-cache-pro/quick-cache-pro.inc.php b/quick-cache-pro/quick-cache-pro.inc.php index 5ad72fc9..69adeb1b 100644 --- a/quick-cache-pro/quick-cache-pro.inc.php +++ b/quick-cache-pro/quick-cache-pro.inc.php @@ -230,7 +230,7 @@ public function setup() 'auto_cache_delay' => '500', // In milliseconds. 'auto_cache_sitemap_url' => 'sitemap.xml', // Relative to `site_url()`. 'auto_cache_other_urls' => '', // A line-delimited list of any other URLs. - 'auto_cache_user_agent' => 'WordPress/'.get_bloginfo('version'), + 'auto_cache_user_agent' => 'WordPress', 'update_sync_username' => '', 'update_sync_password' => '', 'update_sync_version_check' => '1', 'last_update_sync_version_check' => '0'