Version Description
Download this release
Release Info
Developer | johnbillion |
Plugin | WP Crontrol |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3 to 1.3.1
- readme.txt +4 -54
- wp-crontrol.php +17 -11
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== WP Crontrol ===
|
2 |
Contributors: johnbillion, scompt
|
3 |
Tags: admin, cron, plugin, control, wp-cron, crontrol
|
4 |
-
Requires at least: 4.
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 1.3
|
7 |
|
8 |
WP Crontrol lets you view and control what's happening in the WP-Cron system.
|
9 |
|
@@ -80,54 +80,4 @@ The cron commands which were previously included in WP Crontrol are now part of
|
|
80 |
|
81 |
== Changelog ==
|
82 |
|
83 |
-
|
84 |
-
* Improvements to the UI.
|
85 |
-
* More error detection when testing WP-Cron functionality.
|
86 |
-
* Improve the capability checks for single site and multisite.
|
87 |
-
* Lots of escaping and sanitising.
|
88 |
-
* Fix various issues with multiple events with the same hook name.
|
89 |
-
* Removed the WP-CLI commands, as these have now been added to WP-CLI core (see `wp help cron` for more info)
|
90 |
-
|
91 |
-
= 1.2.3 =
|
92 |
-
* Tweaks to i18n and date and args formatting
|
93 |
-
* Properly escape the `crontrol_message` query var (props Julio Potier)
|
94 |
-
|
95 |
-
= 1.2.2 =
|
96 |
-
* Added `wp crontrol run-event` and `wp crontrol delete-event` WP-CLI commands
|
97 |
-
* Clarify language regarding hooks/entries/events
|
98 |
-
|
99 |
-
= 1.2.1 =
|
100 |
-
* Correctly display the local time when listing cron events
|
101 |
-
* Remove a PHP notice
|
102 |
-
* Pass the WP-Cron spawn check through the same filter as the actual spawner
|
103 |
-
|
104 |
-
= 1.2 =
|
105 |
-
* Added support for [WP-CLI](http://wp-cli.org/)
|
106 |
-
* Removed some PHP4 code that's no longer relevant
|
107 |
-
|
108 |
-
= 1.1 =
|
109 |
-
* Bug fixes for running cron events and adding cron schedules
|
110 |
-
* Added a cron spawn test to check for errors when spawning cron
|
111 |
-
* Various small tweaks
|
112 |
-
* WordPress 3.4 compatibility
|
113 |
-
|
114 |
-
= 1.0 =
|
115 |
-
* Input of PHP code for cron events
|
116 |
-
* Non-repeating cron events
|
117 |
-
* Handles cron events with arguments
|
118 |
-
|
119 |
-
= 0.3 =
|
120 |
-
* Internationalization
|
121 |
-
* Editing/deleting/execution of cron events
|
122 |
-
* More text, status messages, etc.
|
123 |
-
* Allow a user to enter a schedule event in a human manner
|
124 |
-
* Looks better on WordPress 2.5
|
125 |
-
|
126 |
-
= 0.2 =
|
127 |
-
* Fully documented the code.
|
128 |
-
* Fixed the bug that the activate action wouldn't be run if the plugin wasn't in a subdirectory.
|
129 |
-
* Now will play nicely in case any other plugins specify additional cron schedules.
|
130 |
-
* Minor cosmetic fixes.
|
131 |
-
|
132 |
-
= 0.1 =
|
133 |
-
* Super basic, look at what's in WP-Cron functionality.
|
1 |
=== WP Crontrol ===
|
2 |
Contributors: johnbillion, scompt
|
3 |
Tags: admin, cron, plugin, control, wp-cron, crontrol
|
4 |
+
Requires at least: 4.1
|
5 |
+
Tested up to: 4.7
|
6 |
+
Stable tag: 1.3.1
|
7 |
|
8 |
WP Crontrol lets you view and control what's happening in the WP-Cron system.
|
9 |
|
80 |
|
81 |
== Changelog ==
|
82 |
|
83 |
+
For WP Crontrol's changelog, please see [the Releases page on GitHub](https://github.com/johnbillion/wp-crontrol/releases).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wp-crontrol.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://wordpress.org/plugins/wp-crontrol/
|
5 |
* Description: WP Crontrol lets you view and control what's happening in the WP-Cron system.
|
6 |
* Author: <a href="https://johnblackbourn.com/">John Blackbourn</a> & <a href="http://www.scompt.com/">Edward Dale</a>
|
7 |
-
* Version: 1.3
|
8 |
* Text Domain: wp-crontrol
|
9 |
* Domain Path: /languages/
|
10 |
* License: GPL v2 or later
|
@@ -417,7 +417,6 @@ class Crontrol {
|
|
417 |
<div class="wrap">
|
418 |
<h1><?php esc_html_e( 'WP-Cron Schedules', 'wp-crontrol' ); ?></h1>
|
419 |
<p><?php esc_html_e( 'WP-Cron schedules are the time intervals that are available for scheduling events. You can only delete custom schedules.', 'wp-crontrol' ); ?></p>
|
420 |
-
<div id="ajax-response"></div>
|
421 |
<table class="widefat striped">
|
422 |
<thead>
|
423 |
<tr>
|
@@ -537,11 +536,11 @@ class Crontrol {
|
|
537 |
global $wp_version;
|
538 |
|
539 |
if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) {
|
540 |
-
return new WP_Error( '
|
541 |
}
|
542 |
|
543 |
if ( defined( 'ALTERNATE_WP_CRON' ) && ALTERNATE_WP_CRON ) {
|
544 |
-
return true;
|
545 |
}
|
546 |
|
547 |
$cached_status = get_transient( 'wp-cron-test-ok' );
|
@@ -590,11 +589,19 @@ class Crontrol {
|
|
590 |
$status = $this->test_cron_spawn();
|
591 |
|
592 |
if ( is_wp_error( $status ) ) {
|
593 |
-
|
594 |
-
|
595 |
-
<
|
596 |
-
|
597 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
598 |
}
|
599 |
|
600 |
}
|
@@ -678,7 +685,7 @@ class Crontrol {
|
|
678 |
<th valign="top" scope="row"><label for="args"><?php esc_html_e( 'Arguments:', 'wp-crontrol' ); ?></label></th>
|
679 |
<td>
|
680 |
<input type="text" class="regular-text" id="args" name="args" value="<?php echo esc_attr( $existing['args'] ); ?>"/>
|
681 |
-
<p class="description"><?php esc_html_e(
|
682 |
</td>
|
683 |
</tr>
|
684 |
<?php endif; ?>
|
@@ -775,7 +782,6 @@ class Crontrol {
|
|
775 |
?>
|
776 |
<div class="wrap">
|
777 |
<h1><?php esc_html_e( 'WP-Cron Events', 'wp-crontrol' ); ?></h1>
|
778 |
-
<p></p>
|
779 |
<table class="widefat striped">
|
780 |
<thead>
|
781 |
<tr>
|
4 |
* Plugin URI: https://wordpress.org/plugins/wp-crontrol/
|
5 |
* Description: WP Crontrol lets you view and control what's happening in the WP-Cron system.
|
6 |
* Author: <a href="https://johnblackbourn.com/">John Blackbourn</a> & <a href="http://www.scompt.com/">Edward Dale</a>
|
7 |
+
* Version: 1.3.1
|
8 |
* Text Domain: wp-crontrol
|
9 |
* Domain Path: /languages/
|
10 |
* License: GPL v2 or later
|
417 |
<div class="wrap">
|
418 |
<h1><?php esc_html_e( 'WP-Cron Schedules', 'wp-crontrol' ); ?></h1>
|
419 |
<p><?php esc_html_e( 'WP-Cron schedules are the time intervals that are available for scheduling events. You can only delete custom schedules.', 'wp-crontrol' ); ?></p>
|
|
|
420 |
<table class="widefat striped">
|
421 |
<thead>
|
422 |
<tr>
|
536 |
global $wp_version;
|
537 |
|
538 |
if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) {
|
539 |
+
return new WP_Error( 'crontrol_info', sprintf( __( 'The %s constant is set to true. WP-Cron spawning is disabled.', 'wp-crontrol' ), 'DISABLE_WP_CRON' ) );
|
540 |
}
|
541 |
|
542 |
if ( defined( 'ALTERNATE_WP_CRON' ) && ALTERNATE_WP_CRON ) {
|
543 |
+
return new WP_Error( 'crontrol_info', sprintf( __( 'The %s constant is set to true.', 'wp-crontrol' ), 'ALTERNATE_WP_CRON' ) );
|
544 |
}
|
545 |
|
546 |
$cached_status = get_transient( 'wp-cron-test-ok' );
|
589 |
$status = $this->test_cron_spawn();
|
590 |
|
591 |
if ( is_wp_error( $status ) ) {
|
592 |
+
if ( 'crontrol_info' === $status->get_error_code() ) {
|
593 |
+
?>
|
594 |
+
<div id="cron-status-notice" class="notice notice-info">
|
595 |
+
<p><?php echo esc_html( $status->get_error_message() ); ?></p>
|
596 |
+
</div>
|
597 |
+
<?php
|
598 |
+
} else {
|
599 |
+
?>
|
600 |
+
<div id="cron-status-error" class="error">
|
601 |
+
<p><?php printf( esc_html__( 'There was a problem spawning a call to the WP-Cron system on your site. This means WP-Cron events on your site may not work. The problem was: %s', 'wp-crontrol' ), '<br><strong>' . esc_html( $status->get_error_message() ) . '</strong>' ); ?></p>
|
602 |
+
</div>
|
603 |
+
<?php
|
604 |
+
}
|
605 |
}
|
606 |
|
607 |
}
|
685 |
<th valign="top" scope="row"><label for="args"><?php esc_html_e( 'Arguments:', 'wp-crontrol' ); ?></label></th>
|
686 |
<td>
|
687 |
<input type="text" class="regular-text" id="args" name="args" value="<?php echo esc_attr( $existing['args'] ); ?>"/>
|
688 |
+
<p class="description"><?php esc_html_e( 'e.g. [25], ["asdf"], or ["i","want",25,"cakes"]', 'wp-crontrol' ); ?></p>
|
689 |
</td>
|
690 |
</tr>
|
691 |
<?php endif; ?>
|
782 |
?>
|
783 |
<div class="wrap">
|
784 |
<h1><?php esc_html_e( 'WP-Cron Events', 'wp-crontrol' ); ?></h1>
|
|
|
785 |
<table class="widefat striped">
|
786 |
<thead>
|
787 |
<tr>
|