Version Description
= 2.0.10.9 = Important security update. Please upgrade immediately.
= 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.1.4.5.3 |
Comparing to | |
See all releases |
Code changes from version 2.1.4.5.2 to 2.1.4.5.3
- A2_Optimized_Optimizations.php +7 -5
- A2_Optimized_OptionsManager.php +7 -0
- a2-optimized.php +1 -1
- readme.txt +1 -1
A2_Optimized_Optimizations.php
CHANGED
@@ -32,11 +32,13 @@ class A2_Optimized_Optimizations {
|
|
32 |
$checked_gzip = get_transient('a2_checked_gzip');
|
33 |
if (false === $checked_gzip) {
|
34 |
$w3tc = $this->thisclass->get_w3tc_config();
|
35 |
-
$
|
36 |
-
|
37 |
-
|
38 |
-
if (
|
39 |
-
|
|
|
|
|
40 |
}
|
41 |
}
|
42 |
set_transient('a2_checked_gzip', true, WEEK_IN_SECONDS);
|
32 |
$checked_gzip = get_transient('a2_checked_gzip');
|
33 |
if (false === $checked_gzip) {
|
34 |
$w3tc = $this->thisclass->get_w3tc_config();
|
35 |
+
if(is_array($w3tc)){
|
36 |
+
$previous_setting = $w3tc['browsercache.html.compression'];
|
37 |
+
$this->thisclass->disable_w3tc_gzip();
|
38 |
+
if ($previous_setting && is_object($this->server_info)) {
|
39 |
+
if (!$this->server_info->gzip || !$this->server_info->cf || !$this->server_info->br) {
|
40 |
+
$this->thisclass->enable_w3tc_gzip();
|
41 |
+
}
|
42 |
}
|
43 |
}
|
44 |
set_transient('a2_checked_gzip', true, WEEK_IN_SECONDS);
|
A2_Optimized_OptionsManager.php
CHANGED
@@ -2164,6 +2164,12 @@ HTML;
|
|
2164 |
*
|
2165 |
*/
|
2166 |
private function kb_searchbox_html() {
|
|
|
|
|
|
|
|
|
|
|
|
|
2167 |
return <<<HTML
|
2168 |
<div class='big-search' style="margin-top:34px" >
|
2169 |
<div class='kb-search' >
|
@@ -2174,6 +2180,7 @@ HTML;
|
|
2174 |
</div>
|
2175 |
<input type="text" id="kb-search-request" name="keywords" placeholder="Search The A2 Knowledge Base">
|
2176 |
<button class='btn btn-success' type='submit'>Search</button>
|
|
|
2177 |
</form>
|
2178 |
</div>
|
2179 |
</div>
|
2164 |
*
|
2165 |
*/
|
2166 |
private function kb_searchbox_html() {
|
2167 |
+
$help_link = "https://wordpress.org/support/plugin/a2-optimized-wp/";
|
2168 |
+
|
2169 |
+
if (class_exists('A2_Optimized_Private_Optimizations')) {
|
2170 |
+
$help_link = "https://my.a2hosting.com/submitticket.php?action=support&type=other";
|
2171 |
+
};
|
2172 |
+
|
2173 |
return <<<HTML
|
2174 |
<div class='big-search' style="margin-top:34px" >
|
2175 |
<div class='kb-search' >
|
2180 |
</div>
|
2181 |
<input type="text" id="kb-search-request" name="keywords" placeholder="Search The A2 Knowledge Base">
|
2182 |
<button class='btn btn-success' type='submit'>Search</button>
|
2183 |
+
<h3><a href='{$help_link}' target='_blank'>Questions, comments, concerns?</a></h3>
|
2184 |
</form>
|
2185 |
</div>
|
2186 |
</div>
|
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.1.4.5.
|
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.1.4.5.3
|
6 |
Author: A2 Hosting
|
7 |
Author URI: https://www.a2hosting.com/
|
8 |
Description: A2 Optimized - WordPress Optimization Plugin
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: A2BCool, a2hosting, dmatteson, sputala
|
|
3 |
Tags: Speed, Optimize, Secure, Fast, LiteSpeed, LSCache, A2, Hosting
|
4 |
Requires at least: 5.1
|
5 |
Tested up to: 6.0
|
6 |
-
Stable tag: 2.1.4.5.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
3 |
Tags: Speed, Optimize, Secure, Fast, LiteSpeed, LSCache, A2, Hosting
|
4 |
Requires at least: 5.1
|
5 |
Tested up to: 6.0
|
6 |
+
Stable tag: 2.1.4.5.3
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|