Version Description
= 2.0 = New GPL plugin, now updates are through the wordpress.org repository
Download this release
Release Info
Developer | a2hosting |
Plugin | A2 Optimized WP |
Version | 2.0.5 |
Comparing to | |
See all releases |
Code changes from version 2.0.4 to 2.0.5
- A2_Optimized_OptionsManager.php +13 -10
- a2-optimized.php +1 -1
- readme.txt +2 -2
A2_Optimized_OptionsManager.php
CHANGED
@@ -146,16 +146,9 @@ class A2_Optimized_OptionsManager {
|
|
146 |
{
|
147 |
$file = 'w3-total-cache/w3-total-cache.php';
|
148 |
$slug = 'w3-total-cache';
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
activate_plugin($file);
|
153 |
-
} else {
|
154 |
-
$this->install_plugin($slug);
|
155 |
-
$this->activate_plugin($file);
|
156 |
-
$this->hit_the_w3tc_page();
|
157 |
-
}
|
158 |
-
}
|
159 |
}
|
160 |
|
161 |
public function get_plugins()
|
@@ -179,6 +172,11 @@ class A2_Optimized_OptionsManager {
|
|
179 |
|
180 |
foreach ($plugins as $file => $plugin) {
|
181 |
if ($plugin['Name'] == $api->name) {
|
|
|
|
|
|
|
|
|
|
|
182 |
$found = true;
|
183 |
}
|
184 |
}
|
@@ -186,6 +184,11 @@ class A2_Optimized_OptionsManager {
|
|
186 |
if (!$found) {
|
187 |
ob_start();
|
188 |
$upgrader = new Plugin_Upgrader(new A2_Plugin_Installer_Skin(compact('title', 'url', 'nonce', 'plugin', 'api')));
|
|
|
|
|
|
|
|
|
|
|
189 |
$upgrader->install($api->download_link);
|
190 |
ob_end_clean();
|
191 |
$this->plugin_list = get_plugins();
|
146 |
{
|
147 |
$file = 'w3-total-cache/w3-total-cache.php';
|
148 |
$slug = 'w3-total-cache';
|
149 |
+
$this->install_plugin($slug);
|
150 |
+
$this->activate_plugin($file);
|
151 |
+
$this->hit_the_w3tc_page();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
}
|
153 |
|
154 |
public function get_plugins()
|
172 |
|
173 |
foreach ($plugins as $file => $plugin) {
|
174 |
if ($plugin['Name'] == $api->name) {
|
175 |
+
if (version_compare($plugin['Version'], '162.0.0.0') === -1) {
|
176 |
+
$this->uninstall_plugin($file);
|
177 |
+
break;
|
178 |
+
}
|
179 |
+
|
180 |
$found = true;
|
181 |
}
|
182 |
}
|
184 |
if (!$found) {
|
185 |
ob_start();
|
186 |
$upgrader = new Plugin_Upgrader(new A2_Plugin_Installer_Skin(compact('title', 'url', 'nonce', 'plugin', 'api')));
|
187 |
+
|
188 |
+
if ($slug == 'w3-total-cache') {
|
189 |
+
$api->download_link = 'http://wp-plugins.a2hosting.com/wp-content/uploads/rkv-repo/w3-total-cache.zip';
|
190 |
+
}
|
191 |
+
|
192 |
$upgrader->install($api->download_link);
|
193 |
ob_end_clean();
|
194 |
$this->plugin_list = get_plugins();
|
a2-optimized.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: A2 Optimized WP
|
4 |
Plugin URI: https://wordpress.org/plugins/a2-optimized/
|
5 |
-
Version: 2.0.
|
6 |
Author: A2 Hosting
|
7 |
Author URI: https://www.a2hosting.com/
|
8 |
Description: A2 Optimized - WordPress Optimization Plugin
|
2 |
/*
|
3 |
Plugin Name: A2 Optimized WP
|
4 |
Plugin URI: https://wordpress.org/plugins/a2-optimized/
|
5 |
+
Version: 2.0.5
|
6 |
Author: A2 Hosting
|
7 |
Author URI: https://www.a2hosting.com/
|
8 |
Description: A2 Optimized - WordPress Optimization Plugin
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: A2BCool, a2hosting, dmatteson, sputala
|
3 |
Tags: Speed, Optimize, Secure, Fast, W3 Total Cache, W3TC, Hosting
|
4 |
Requires at least: 3.8
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 2.0.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
2 |
Contributors: A2BCool, a2hosting, dmatteson, sputala
|
3 |
Tags: Speed, Optimize, Secure, Fast, W3 Total Cache, W3TC, Hosting
|
4 |
Requires at least: 3.8
|
5 |
+
Tested up to: 4.7
|
6 |
+
Stable tag: 2.0.5
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|