Version Description
(2019-10-26) =
-
Bug fix
- Fixed an unhandled exception in an upgrade script used to delete old cron jobs.
Download this release
Release Info
Developer | WPWhiteSecurity |
Plugin | WP Security Audit Log |
Version | 3.5.2.1 |
Comparing to | |
See all releases |
Code changes from version 3.5.2 to 3.5.2.1
- classes/Update/Task/CronNameRemap.php +17 -14
- readme.txt +6 -1
- wp-security-audit-log.php +2 -2
classes/Update/Task/CronNameRemap.php
CHANGED
@@ -42,19 +42,21 @@ class CronNameRemap {
|
|
42 |
*/
|
43 |
public function run() {
|
44 |
// Get crons to be remapped.
|
45 |
-
$
|
|
|
46 |
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
|
|
58 |
}
|
59 |
}
|
60 |
}
|
@@ -69,7 +71,8 @@ class CronNameRemap {
|
|
69 |
*/
|
70 |
private function get_crons_to_remap() {
|
71 |
// Get an array of crons that have args.
|
72 |
-
$complex_crons
|
|
|
73 |
// This is a list of _mostly_ static crons that are to be remapped.
|
74 |
$simple_crons = array(
|
75 |
array(
|
@@ -95,7 +98,7 @@ class CronNameRemap {
|
|
95 |
array(
|
96 |
'name_old' => 'run_archiving',
|
97 |
'name_new' => 'wsal_run_archiving',
|
98 |
-
'frequency' => strtolower( $
|
99 |
),
|
100 |
);
|
101 |
|
42 |
*/
|
43 |
public function run() {
|
44 |
// Get crons to be remapped.
|
45 |
+
if ( null === $this->wsal || ! is_a( $this->wsal, 'WpSecurityAuditLog' ) ) {
|
46 |
+
$crons = $this->get_crons_to_remap();
|
47 |
|
48 |
+
// Loop through list of crons and check if scheduled.
|
49 |
+
foreach ( $crons as $cron ) {
|
50 |
+
$args = ( isset( $cron['args'] ) ) ? $cron['args'] : array();
|
51 |
+
$time = wp_next_scheduled( $cron['name_old'], $args );
|
52 |
+
if ( $time ) {
|
53 |
+
// Cron with old name is scheduled - unschedule.
|
54 |
+
wp_unschedule_event( $time, $cron['name_old'], $args );
|
55 |
+
$rescheduled = wp_next_scheduled( $cron['name_new'], $args );
|
56 |
+
if ( ! $rescheduled ) {
|
57 |
+
// New cron is not scheduled already - schedule it.
|
58 |
+
wp_schedule_event( $time, $cron['frequency'], $cron['name_new'], $args );
|
59 |
+
}
|
60 |
}
|
61 |
}
|
62 |
}
|
71 |
*/
|
72 |
private function get_crons_to_remap() {
|
73 |
// Get an array of crons that have args.
|
74 |
+
$complex_crons = $this->get_crons_with_args_for_remap();
|
75 |
+
$archiving_frequency = $this->wsal->GetGlobalOption( 'archiving-run-every', 'hourly' );
|
76 |
// This is a list of _mostly_ static crons that are to be remapped.
|
77 |
$simple_crons = array(
|
78 |
array(
|
98 |
array(
|
99 |
'name_old' => 'run_archiving',
|
100 |
'name_new' => 'wsal_run_archiving',
|
101 |
+
'frequency' => strtolower( $archiving_frequency ), // this is not static data.
|
102 |
),
|
103 |
);
|
104 |
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ License URI: https://www.gnu.org/licenses/gpl.html
|
|
6 |
Tags: wordpress security plugin, wordpress security audit log, audit log, activity logs, event log wordpress, wordpress user tracking, wordpress activity log, wordpress audit, security event log, audit trail, wordpress security monitor, wordpress admin, wordpress admin monitoring, user activity, admin, multisite, dashboard, notification, wordpress monitoring, email notification, wordpress email alerts, SMS messages, tracking, user tracking, user activity report, wordpress audit trail
|
7 |
Requires at least: 3.6
|
8 |
Tested up to: 5.3
|
9 |
-
Stable tag: 3.5.2
|
10 |
Requires PHP: 5.5
|
11 |
|
12 |
An easy to use & comprehensive WordPress activity log plugin to log all changes on WordPress sites & multisite networks.
|
@@ -204,6 +204,11 @@ Please refer to our [Support & Documentation pages](https://www.wpsecurityauditl
|
|
204 |
|
205 |
== Changelog ==
|
206 |
|
|
|
|
|
|
|
|
|
|
|
207 |
= 3.5.2 (2019-10-26) =
|
208 |
|
209 |
Release notes: [Update 3.5.2 - New filter hooks & better support for CPT on multisite networks](https://www.wpsecurityauditlog.com/releases/update-3-5-2/)
|
6 |
Tags: wordpress security plugin, wordpress security audit log, audit log, activity logs, event log wordpress, wordpress user tracking, wordpress activity log, wordpress audit, security event log, audit trail, wordpress security monitor, wordpress admin, wordpress admin monitoring, user activity, admin, multisite, dashboard, notification, wordpress monitoring, email notification, wordpress email alerts, SMS messages, tracking, user tracking, user activity report, wordpress audit trail
|
7 |
Requires at least: 3.6
|
8 |
Tested up to: 5.3
|
9 |
+
Stable tag: 3.5.2.1
|
10 |
Requires PHP: 5.5
|
11 |
|
12 |
An easy to use & comprehensive WordPress activity log plugin to log all changes on WordPress sites & multisite networks.
|
204 |
|
205 |
== Changelog ==
|
206 |
|
207 |
+
= 3.5.2.1 (2019-10-26) =
|
208 |
+
|
209 |
+
* **Bug fix**
|
210 |
+
* Fixed an unhandled exception in an upgrade script used to delete old cron jobs.
|
211 |
+
|
212 |
= 3.5.2 (2019-10-26) =
|
213 |
|
214 |
Release notes: [Update 3.5.2 - New filter hooks & better support for CPT on multisite networks](https://www.wpsecurityauditlog.com/releases/update-3-5-2/)
|
wp-security-audit-log.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: http://www.wpsecurityauditlog.com/
|
5 |
* Description: Identify WordPress security issues before they become a problem. Keep track of everything happening on your WordPress including WordPress users activity. Similar to Windows Event Log and Linux Syslog, WP Security Audit Log generates a security alert for everything that happens on your WordPress blogs and websites. Use the Audit Log Viewer included in the plugin to see all the security alerts.
|
6 |
* Author: WP White Security
|
7 |
-
* Version: 3.5.2
|
8 |
* Text Domain: wp-security-audit-log
|
9 |
* Author URI: http://www.wpwhitesecurity.com/
|
10 |
* License: GPL2
|
@@ -46,7 +46,7 @@ if ( ! function_exists( 'wsal_freemius' ) ) {
|
|
46 |
*
|
47 |
* @var string
|
48 |
*/
|
49 |
-
public $version = '3.5.2';
|
50 |
|
51 |
// Plugin constants.
|
52 |
const PLG_CLS_PRFX = 'WSAL_';
|
4 |
* Plugin URI: http://www.wpsecurityauditlog.com/
|
5 |
* Description: Identify WordPress security issues before they become a problem. Keep track of everything happening on your WordPress including WordPress users activity. Similar to Windows Event Log and Linux Syslog, WP Security Audit Log generates a security alert for everything that happens on your WordPress blogs and websites. Use the Audit Log Viewer included in the plugin to see all the security alerts.
|
6 |
* Author: WP White Security
|
7 |
+
* Version: 3.5.2.1
|
8 |
* Text Domain: wp-security-audit-log
|
9 |
* Author URI: http://www.wpwhitesecurity.com/
|
10 |
* License: GPL2
|
46 |
*
|
47 |
* @var string
|
48 |
*/
|
49 |
+
public $version = '3.5.2.1';
|
50 |
|
51 |
// Plugin constants.
|
52 |
const PLG_CLS_PRFX = 'WSAL_';
|