Skip to content

Commit

Permalink
Correct plugin references in last commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Caldwell committed Aug 12, 2017
1 parent df7c82b commit e4afd23
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/includes/classes/VsUpgrades.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected function runHandlers()
*/
protected function fromLte150807()
{
if ($this->versionCompare($this->prev_version, '150807', '<=', true)) {
if ($this->plugin->versionCompare($this->prev_version, '150807', '<=', true)) {
delete_site_option(GLOBAL_NS.'_errors'); // No longer necessary.

if (is_multisite() && is_array($child_blogs = $this->plugin->getBlogs())) {
Expand Down Expand Up @@ -92,7 +92,7 @@ protected function fromLte150807()
*/
protected function fromLte151107()
{
if ($this->versionCompare($this->prev_version, '151107', '<=', true)) {
if ($this->plugin->versionCompare($this->prev_version, '151107', '<=', true)) {
if (is_array($existing_options = get_site_option(GLOBAL_NS.'_options'))) {
if (!empty($existing_options['cache_clear_xml_sitemap_patterns']) && mb_strpos($existing_options['cache_clear_xml_sitemap_patterns'], '**') === false) {
$this->plugin->options['cache_clear_xml_sitemap_patterns'] = str_replace('*', '**', $existing_options['cache_clear_xml_sitemap_patterns']);
Expand Down Expand Up @@ -131,7 +131,7 @@ protected function fromLte151107()
*/
protected function fromLte151114()
{
if ($this->versionCompare($this->prev_version, '151114', '<=', true)) {
if ($this->plugin->versionCompare($this->prev_version, '151114', '<=', true)) {
if (!$this->plugin->isApache()) {
return; // Not running the Apache web server.
}
Expand Down Expand Up @@ -214,7 +214,7 @@ protected function fromZenCache()
*/
protected function fromLte160227()
{
if ($this->versionCompare($this->prev_version, '160227', '<=', true)) {
if ($this->plugin->versionCompare($this->prev_version, '160227', '<=', true)) {
if (is_array($existing_options = get_site_option(GLOBAL_NS.'_options'))) {
$this->plugin->options['cache_clear_term_other_enable'] = $this->plugin->default_options['cache_clear_term_other_enable'];
if ($this->plugin->options !== $existing_options) {
Expand All @@ -235,7 +235,7 @@ protected function fromLte160227()
*/
protected function fromLte160521()
{
if ($this->versionCompare($this->prev_version, '160521', '<=', true)) {
if ($this->plugin->versionCompare($this->prev_version, '160521', '<=', true)) {
$this->plugin->dismissMainNotice('allow_url_fopen_disabled');
$this->plugin->removeAdvancedCache();

Expand Down Expand Up @@ -264,7 +264,7 @@ protected function fromLte160521()
*/
protected function fromLte160709()
{
if ($this->versionCompare($this->prev_version, '160709', '<=', true)) {
if ($this->plugin->versionCompare($this->prev_version, '160709', '<=', true)) {
$this->plugin->dismissMainNotice('new-pro-version-available'); // Dismiss any existing notices like this; upgrade notices are handled by WordPress now.
}
}
Expand All @@ -275,7 +275,7 @@ protected function fromLte160709()
*/
protected function fromLte161108()
{
if ($this->versionCompare($this->prev_version, '161108', '<=', true)) {
if ($this->plugin->versionCompare($this->prev_version, '161108', '<=', true)) {
if (is_array($existing_options = get_site_option(GLOBAL_NS.'_options'))) {
if (IS_PRO && isset($existing_options['htmlc_css_exclusions']) && empty($existing_options['htmlc_css_exclusions'])) {
$this->plugin->options['htmlc_css_exclusions'] = $this->plugin->default_options['htmlc_css_exclusions'];
Expand Down

0 comments on commit e4afd23

Please sign in to comment.