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.3.5 |
Comparing to | |
See all releases |
Code changes from version 2.1.3.4 to 2.1.3.5
- A2_Optimized_Optimizations.php +4 -8
- A2_Optimized_OptionsManager.php +15 -3
- a2-optimized.php +1 -1
- readme.txt +1 -1
A2_Optimized_Optimizations.php
CHANGED
@@ -516,11 +516,9 @@ class A2_Optimized_Optimizations {
|
|
516 |
//make sure the basic a2-optimized rules are present
|
517 |
$thisclass->set_install_status('htaccess-deny-direct-access', false);
|
518 |
} else {
|
519 |
-
if ($thisclass->get_deny_direct() ==
|
520 |
-
$
|
521 |
}
|
522 |
-
$item['configured'] = true;
|
523 |
-
$thisclass->set_install_status('htaccess-deny-direct-access', true);
|
524 |
}
|
525 |
},
|
526 |
'enable' => function () use (&$thisclass) {
|
@@ -547,11 +545,9 @@ class A2_Optimized_Optimizations {
|
|
547 |
}
|
548 |
$thisclass->set_install_status('lock-editing', false);
|
549 |
} else {
|
550 |
-
if ($thisclass->get_lockdown() ==
|
551 |
-
$
|
552 |
}
|
553 |
-
$item['configured'] = true;
|
554 |
-
$thisclass->set_install_status('lock-editing', true);
|
555 |
}
|
556 |
},
|
557 |
'enable' => function () use (&$thisclass) {
|
516 |
//make sure the basic a2-optimized rules are present
|
517 |
$thisclass->set_install_status('htaccess-deny-direct-access', false);
|
518 |
} else {
|
519 |
+
if ($thisclass->get_deny_direct() == true) {
|
520 |
+
$item['configured'] = true;
|
521 |
}
|
|
|
|
|
522 |
}
|
523 |
},
|
524 |
'enable' => function () use (&$thisclass) {
|
545 |
}
|
546 |
$thisclass->set_install_status('lock-editing', false);
|
547 |
} else {
|
548 |
+
if ($thisclass->get_lockdown() == true) {
|
549 |
+
$item['configured'] = true;
|
550 |
}
|
|
|
|
|
551 |
}
|
552 |
},
|
553 |
'enable' => function () use (&$thisclass) {
|
A2_Optimized_OptionsManager.php
CHANGED
@@ -2495,11 +2495,19 @@ HTML;
|
|
2495 |
*
|
2496 |
*/
|
2497 |
public function set_lockdown($lockdown = true) {
|
2498 |
-
|
|
|
|
|
|
|
|
|
2499 |
}
|
2500 |
|
2501 |
public function set_nomods($lockdown = true) {
|
2502 |
-
|
|
|
|
|
|
|
|
|
2503 |
}
|
2504 |
|
2505 |
/**
|
@@ -2508,7 +2516,11 @@ HTML;
|
|
2508 |
*
|
2509 |
*/
|
2510 |
public function set_deny_direct($deny = true) {
|
2511 |
-
|
|
|
|
|
|
|
|
|
2512 |
}
|
2513 |
|
2514 |
/**
|
2495 |
*
|
2496 |
*/
|
2497 |
public function set_lockdown($lockdown = true) {
|
2498 |
+
if ($lockdown == false) {
|
2499 |
+
delete_option('a2_optimized_lockdown');
|
2500 |
+
} else {
|
2501 |
+
update_option('a2_optimized_lockdown', $lockdown);
|
2502 |
+
}
|
2503 |
}
|
2504 |
|
2505 |
public function set_nomods($lockdown = true) {
|
2506 |
+
if ($lockdown == false) {
|
2507 |
+
delete_option('a2_optimized_nomods');
|
2508 |
+
} else {
|
2509 |
+
update_option('a2_optimized_nomods', $lockdown);
|
2510 |
+
}
|
2511 |
}
|
2512 |
|
2513 |
/**
|
2516 |
*
|
2517 |
*/
|
2518 |
public function set_deny_direct($deny = true) {
|
2519 |
+
if ($deny == false) {
|
2520 |
+
delete_option('a2_optimized_deny_direct');
|
2521 |
+
} else {
|
2522 |
+
update_option('a2_optimized_deny_direct', $deny);
|
2523 |
+
}
|
2524 |
}
|
2525 |
|
2526 |
/**
|
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.3.
|
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.3.5
|
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: 5.1
|
5 |
Tested up to: 5.8
|
6 |
-
Stable tag: 2.1.3.
|
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, W3 Total Cache, W3TC, Hosting
|
4 |
Requires at least: 5.1
|
5 |
Tested up to: 5.8
|
6 |
+
Stable tag: 2.1.3.5
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|