Version Description
Download this release
Release Info
Developer | johnbillion |
Plugin | WP Crontrol |
Version | 1.8.3 |
Comparing to | |
See all releases |
Code changes from version 1.8.2 to 1.8.3
- readme.md +5 -1
- wp-crontrol.php +8 -9
readme.md
CHANGED
@@ -4,7 +4,7 @@ Contributors: johnbillion, scompt
|
|
4 |
Tags: cron, wp-cron, crontrol, debug
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 5.4
|
7 |
-
Stable tag: 1.8.
|
8 |
Requires PHP: 5.3
|
9 |
|
10 |
WP Crontrol lets you view and control what's happening in the WP-Cron system.
|
@@ -76,6 +76,10 @@ The cron commands which were previously included in WP Crontrol are now part of
|
|
76 |
|
77 |
## Changelog ##
|
78 |
|
|
|
|
|
|
|
|
|
79 |
### 1.8.2 ###
|
80 |
|
81 |
* Bypass the duplicate event check when manually running an event. This allows an event to manually run even if it's due within ten minutes or if it's overdue.
|
4 |
Tags: cron, wp-cron, crontrol, debug
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 5.4
|
7 |
+
Stable tag: 1.8.3
|
8 |
Requires PHP: 5.3
|
9 |
|
10 |
WP Crontrol lets you view and control what's happening in the WP-Cron system.
|
76 |
|
77 |
## Changelog ##
|
78 |
|
79 |
+
### 1.8.3 ###
|
80 |
+
|
81 |
+
* Fix the editing of events that aren't currently listed on the first page of results.
|
82 |
+
|
83 |
### 1.8.2 ###
|
84 |
|
85 |
* Bypass the duplicate event check when manually running an event. This allows an event to manually run even if it's due within ten minutes or if it's overdue.
|
wp-crontrol.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: WP Crontrol lets you view and control what's happening in the WP-Cron system.
|
6 |
* Author: John Blackbourn & crontributors
|
7 |
* Author URI: https://github.com/johnbillion/wp-crontrol/graphs/contributors
|
8 |
-
* Version: 1.8.
|
9 |
* Text Domain: wp-crontrol
|
10 |
* Domain Path: /languages/
|
11 |
* Requires PHP: 5.3.6
|
@@ -732,12 +732,11 @@ function get_utc_offset() {
|
|
732 |
/**
|
733 |
* Shows the form used to add/edit cron events.
|
734 |
*
|
735 |
-
* @param
|
736 |
-
* @param bool
|
737 |
-
* @param bool $is_php Whether the form is for a PHP event.
|
738 |
* @return void
|
739 |
*/
|
740 |
-
function show_cron_form(
|
741 |
$display_args = '';
|
742 |
$edit_id = null;
|
743 |
$existing = false;
|
@@ -746,7 +745,7 @@ function show_cron_form( array $events, $editing, $is_php = null ) {
|
|
746 |
$edit_id = wp_unslash( $_GET['id'] );
|
747 |
}
|
748 |
|
749 |
-
foreach (
|
750 |
if ( $edit_id === $event->hook && intval( $_GET['next_run_utc'] ) === $event->time && $event->sig === $_GET['sig'] ) {
|
751 |
$existing = array(
|
752 |
'hookname' => $event->hook,
|
@@ -1085,15 +1084,15 @@ function admin_manage_page() {
|
|
1085 |
break;
|
1086 |
|
1087 |
case $tabs['add-event']:
|
1088 |
-
show_cron_form(
|
1089 |
break;
|
1090 |
|
1091 |
case $tabs['add-php-event']:
|
1092 |
-
show_cron_form(
|
1093 |
break;
|
1094 |
|
1095 |
case $tabs['edit-event']:
|
1096 |
-
show_cron_form(
|
1097 |
break;
|
1098 |
|
1099 |
}
|
5 |
* Description: WP Crontrol lets you view and control what's happening in the WP-Cron system.
|
6 |
* Author: John Blackbourn & crontributors
|
7 |
* Author URI: https://github.com/johnbillion/wp-crontrol/graphs/contributors
|
8 |
+
* Version: 1.8.3
|
9 |
* Text Domain: wp-crontrol
|
10 |
* Domain Path: /languages/
|
11 |
* Requires PHP: 5.3.6
|
732 |
/**
|
733 |
* Shows the form used to add/edit cron events.
|
734 |
*
|
735 |
+
* @param bool $editing Whether the form is for the event editor.
|
736 |
+
* @param bool $is_php Whether the form is for a PHP event.
|
|
|
737 |
* @return void
|
738 |
*/
|
739 |
+
function show_cron_form( $editing, $is_php = null ) {
|
740 |
$display_args = '';
|
741 |
$edit_id = null;
|
742 |
$existing = false;
|
745 |
$edit_id = wp_unslash( $_GET['id'] );
|
746 |
}
|
747 |
|
748 |
+
foreach ( Event\get() as $event ) {
|
749 |
if ( $edit_id === $event->hook && intval( $_GET['next_run_utc'] ) === $event->time && $event->sig === $_GET['sig'] ) {
|
750 |
$existing = array(
|
751 |
'hookname' => $event->hook,
|
1084 |
break;
|
1085 |
|
1086 |
case $tabs['add-event']:
|
1087 |
+
show_cron_form( false );
|
1088 |
break;
|
1089 |
|
1090 |
case $tabs['add-php-event']:
|
1091 |
+
show_cron_form( false, true );
|
1092 |
break;
|
1093 |
|
1094 |
case $tabs['edit-event']:
|
1095 |
+
show_cron_form( true );
|
1096 |
break;
|
1097 |
|
1098 |
}
|