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.0.10.9.8 |
Comparing to | |
See all releases |
Code changes from version 2.0.10.9.7 to 2.0.10.9.8
- A2_Optimized_Plugin.php +27 -6
- a2-optimized.php +1 -1
- readme.txt +1 -1
A2_Optimized_Plugin.php
CHANGED
@@ -7,7 +7,9 @@
|
|
7 |
*/
|
8 |
|
9 |
// Prevent direct access to this file
|
10 |
-
if ( ! defined( 'WPINC' ) )
|
|
|
|
|
11 |
|
12 |
include_once('A2_Optimized_OptionsManager.php');
|
13 |
|
@@ -158,7 +160,7 @@ class A2_Optimized_Plugin extends A2_Optimized_OptionsManager {
|
|
158 |
}
|
159 |
|
160 |
public function upgrade() {
|
161 |
-
if(file_exists(ABSPATH . 'wp-config.php.bak.a2')){
|
162 |
unlink(ABSPATH . 'wp-config.php.bak.a2');
|
163 |
}
|
164 |
}
|
@@ -443,6 +445,17 @@ HTML;
|
|
443 |
HTML;
|
444 |
}
|
445 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
446 |
public function rwl_notice() {
|
447 |
$rwl_page = get_option('wpseh_l01gnhdlwp');
|
448 |
$home_page = get_home_url();
|
@@ -495,6 +508,14 @@ HTML;
|
|
495 |
add_action('admin_notices', array(&$this, 'config_page_notice'));
|
496 |
}
|
497 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
498 |
foreach ($active_plugins as $active_plugin) {
|
499 |
$plugin_folder = explode('/', $active_plugin);
|
500 |
if (in_array($plugin_folder[0], $this->incompatible_plugins)) {
|
@@ -711,12 +732,12 @@ HTML;
|
|
711 |
*/
|
712 |
public function client_is_automattic() {
|
713 |
//check for jetpack / akismet / vaultpress
|
714 |
-
if(
|
715 |
!is_plugin_active('jetpack/jetpack.php')
|
716 |
&& !is_plugin_active('akismet/akismet.php')
|
717 |
-
&& !is_plugin_active('vaultpress/vaultpress.php')){
|
718 |
-
|
719 |
-
|
720 |
|
721 |
$ip_address = $_SERVER['REMOTE_ADDR'];
|
722 |
if ($this->is_ip_in_range(
|
7 |
*/
|
8 |
|
9 |
// Prevent direct access to this file
|
10 |
+
if ( ! defined( 'WPINC' ) ) {
|
11 |
+
die;
|
12 |
+
}
|
13 |
|
14 |
include_once('A2_Optimized_OptionsManager.php');
|
15 |
|
160 |
}
|
161 |
|
162 |
public function upgrade() {
|
163 |
+
if (file_exists(ABSPATH . 'wp-config.php.bak.a2')) {
|
164 |
unlink(ABSPATH . 'wp-config.php.bak.a2');
|
165 |
}
|
166 |
}
|
445 |
HTML;
|
446 |
}
|
447 |
|
448 |
+
public function divi_notice() {
|
449 |
+
$current_theme = get_template();
|
450 |
+
|
451 |
+
echo <<<HTML
|
452 |
+
<div id="divi-minify-notice" class="notice notice-error" >
|
453 |
+
<p><strong style="color:red">Your theme, {$current_theme}, currently provides HTML/JS/CSS minification. This feature is also enabled by A2 Optimized. This may cause issues with some functionality of your theme.</strong></p>
|
454 |
+
<p>You can disable HTML/JS/CSS either in your theme options or within the <a href="admin.php?page=A2_Optimized_Plugin_admin">A2 Optimized Configuration page</a></p>
|
455 |
+
</div>
|
456 |
+
HTML;
|
457 |
+
}
|
458 |
+
|
459 |
public function rwl_notice() {
|
460 |
$rwl_page = get_option('wpseh_l01gnhdlwp');
|
461 |
$home_page = get_home_url();
|
508 |
add_action('admin_notices', array(&$this, 'config_page_notice'));
|
509 |
}
|
510 |
|
511 |
+
if (get_template() == 'Divi') {
|
512 |
+
$w3tc = $this->get_w3tc_config();
|
513 |
+
|
514 |
+
if ($w3tc['minify.html.enable'] || $w3tc['minify.css.enable'] || $w3tc['minify.js.enable']) {
|
515 |
+
add_action('admin_notices', array(&$this, 'divi_notice'));
|
516 |
+
}
|
517 |
+
}
|
518 |
+
|
519 |
foreach ($active_plugins as $active_plugin) {
|
520 |
$plugin_folder = explode('/', $active_plugin);
|
521 |
if (in_array($plugin_folder[0], $this->incompatible_plugins)) {
|
732 |
*/
|
733 |
public function client_is_automattic() {
|
734 |
//check for jetpack / akismet / vaultpress
|
735 |
+
if (
|
736 |
!is_plugin_active('jetpack/jetpack.php')
|
737 |
&& !is_plugin_active('akismet/akismet.php')
|
738 |
+
&& !is_plugin_active('vaultpress/vaultpress.php')) {
|
739 |
+
return false;
|
740 |
+
}
|
741 |
|
742 |
$ip_address = $_SERVER['REMOTE_ADDR'];
|
743 |
if ($this->is_ip_in_range(
|
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.10.9.
|
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.10.9.8
|
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, W3 Total Cache, W3TC, Hosting
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 5.3
|
6 |
-
Stable tag: 2.0.10.9.
|
7 |
Requires PHP: 5.3
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
3 |
Tags: Speed, Optimize, Secure, Fast, W3 Total Cache, W3TC, Hosting
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 5.3
|
6 |
+
Stable tag: 2.0.10.9.8
|
7 |
Requires PHP: 5.3
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|