WP Crontrol - Version 1.8.1

Version Description

Download this release

Release Info

Developer johnbillion
Plugin Icon 128x128 WP Crontrol
Version 1.8.1
Comparing to
See all releases

Code changes from version 1.8.0 to 1.8.1

Files changed (3) hide show
  1. composer.json +0 -38
  2. readme.md +144 -2
  3. wp-crontrol.php +9 -9
composer.json DELETED
@@ -1,38 +0,0 @@
1
- {
2
- "name": "johnbillion/wp-crontrol",
3
- "description": "WP Crontrol lets you view and control what's happening in the WP-Cron system.",
4
- "homepage": "https://github.com/johnbillion/wp-crontrol/",
5
- "license": "GPL-2.0+",
6
- "type": "wordpress-plugin",
7
- "authors": [
8
- {
9
- "name": "John Blackbourn",
10
- "homepage": "https://johnblackbourn.com/"
11
- },
12
- {
13
- "name": "Edward Dale",
14
- "homepage": "http://scompt.com/"
15
- }
16
- ],
17
- "config": {
18
- "sort-packages": true,
19
- "preferred-install": "dist"
20
- },
21
- "require-dev": {
22
- "dealerdirect/phpcodesniffer-composer-installer": "^0.5",
23
- "phpcompatibility/phpcompatibility-wp": "^2.0",
24
- "wp-coding-standards/wpcs": "2.1.0"
25
- },
26
- "require": {
27
- "php": ">=5.3.6",
28
- "composer/installers": "~1.0"
29
- },
30
- "scripts": {
31
- "test:cs": [
32
- "vendor/bin/phpcs -ps --colors --report-code --report-summary --report-width=80 --cache=tests/cache/phpcs ."
33
- ],
34
- "test": [
35
- "@test:cs"
36
- ]
37
- }
38
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.0
8
  Requires PHP: 5.3
9
 
10
  WP Crontrol lets you view and control what's happening in the WP-Cron system.
@@ -76,4 +76,146 @@ The cron commands which were previously included in WP Crontrol are now part of
76
 
77
  ## Changelog ##
78
 
79
- For WP Crontrol's changelog, please see [the Releases page on GitHub](https://github.com/johnbillion/wp-crontrol/releases).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  Tags: cron, wp-cron, crontrol, debug
5
  Requires at least: 4.1
6
  Tested up to: 5.4
7
+ Stable tag: 1.8.1
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.1 ###
80
+
81
+ * Fix the bottom bulk action menu on the event listing screen.
82
+ * Make the timezone more prominent when adding or editing a cron event.
83
+
84
+ ### 1.8.0 ###
85
+
86
+ * Searching and pagination for cron events
87
+ * Ability to delete all cron events with a given hook
88
+ * More accurate response messages when managing events (in WordPress 5.1+)
89
+ * Visual warnings for events without actions, and PHP events with syntax errors
90
+ * Timezone-related clarifications and fixes
91
+ * A more unified UI
92
+ * Modernised codebase
93
+
94
+
95
+ ### 1.7.1 ###
96
+
97
+ * Correct the PHP.net URL for the `strtotime()` reference.
98
+
99
+ ### 1.7.0 ###
100
+
101
+ * Remove the `date` and `time` inputs and replace with a couple of preset options and a plain text field. Fixes #24 .
102
+ * Ensure the schedule name is always correct when multiple schedules exist with the same interval. Add error handling. Fixes #25.
103
+ * Re-introduce the display of the current site time.
104
+ * Use a more appropriate HTTP response code for unauthorised request errors.
105
+
106
+
107
+ ### 1.6.2 ###
108
+
109
+ * Remove the ability to delete a PHP cron event if the user cannot edit files.
110
+ * Remove the `Edit` link for PHP cron events when the user cannot edit the event.
111
+ * Avoid a PHP notice due to an undefined variable when adding a new cron event.
112
+
113
+ ### 1.6.1 ###
114
+
115
+ * Fix a potential fatal error on the cron events listing screen.
116
+
117
+ ### 1.6 ###
118
+
119
+ * Introduce bulk deletion of cron events. Yay!
120
+ * Show the schedule name instead of the schedule interval next to each event.
121
+ * Add core's new `delete_expired_transients` event to the list of core events.
122
+ * Don't allow custom cron schedules to be deleted if they're in use.
123
+ * Add links between the Events and Schedules admin screens.
124
+ * Add syntax highlighting to the PHP code editor for a PHP cron event.
125
+ * Styling fixes for events with many arguments or long arguments.
126
+ * Improvements to help text.
127
+ * Remove usage of `create_function()`.
128
+ * Fix some translator comments, improve i18n, improve coding standards.
129
+
130
+ ### 1.5.0 ###
131
+
132
+ * Show the hooked actions for each cron event.
133
+ * Don't show the `Delete` link for core's built-in cron events, as they get re-populated immediately.
134
+ * Correct the success message after adding or editing PHP cron events.
135
+ * Correct the translations directory name.
136
+
137
+ ### 1.4 ###
138
+
139
+ - Switch to requiring cron event times to be input using the site's local timezone instead of UTC.
140
+ - Add the ability for a PHP cron event to be given an optional display name.
141
+ - Better UX for users who cannot edit files and therefore cannot add or edit PHP cron events.
142
+ - Terminology and i18n improvements.
143
+
144
+
145
+ ### 1.3.1 ###
146
+
147
+ - Display a less scary looking message when `DISABLE_WP_CRON` is defined.
148
+ - Correct the example code for cron event arguments.
149
+
150
+
151
+ ### 1.3 ###
152
+
153
+ - Improvements to the UI.
154
+ - More error detection when testing WP-Cron functionality.
155
+ - Improve the capability checks for single site and multisite.
156
+ - Lots of escaping and sanitising.
157
+ - Fix various issues with multiple events with the same hook name.
158
+ - Removed the WP-CLI commands, as these have now been added to WP-CLI core (see `wp help cron` for more info)
159
+
160
+
161
+ ### 1.2.3 ###
162
+
163
+ - Tweaks to i18n and date and args formatting
164
+ - Properly escape the `crontrol_message` query var (props Julio Potier)
165
+
166
+
167
+ ### 1.2.2 ###
168
+
169
+ - Added `wp crontrol run-event` and `wp crontrol delete-event` WP-CLI commands
170
+ - Clarify language regarding hooks/entries/events
171
+
172
+
173
+ ### 1.2.1 ###
174
+
175
+ - Correctly display the local time when listing cron events
176
+ - Remove a PHP notice
177
+ - Pass the WP-Cron spawn check through the same filter as the actual spawner
178
+
179
+
180
+ ### 1.2 ###
181
+
182
+ - Added support for [WP-CLI](http://wp-cli.org/)
183
+ - Removed some PHP4 code that's no longer relevant
184
+
185
+
186
+ ### 1.1 ###
187
+
188
+ - Bug fixes for running cron events and adding cron schedules
189
+ - Added a cron spawn test to check for errors when spawning cron
190
+ - Various small tweaks
191
+ - WordPress 3.4 compatibility
192
+
193
+
194
+ ### 1.0 ###
195
+
196
+ - Input of PHP code for cron events
197
+ - Non-repeating cron events
198
+ - Handles cron events with arguments
199
+
200
+
201
+ ### 0.3 ###
202
+
203
+ - Internationalization
204
+ - Editing/deleting/execution of cron events
205
+ - More text, status messages, etc.
206
+ - Allow a user to enter a schedule event in a human manner
207
+ - Looks better on WordPress 2.5
208
+
209
+
210
+ ### 0.2 ###
211
+
212
+ - Fully documented the code.
213
+ - Fixed the bug that the activate action wouldn't be run if the plugin wasn't in a subdirectory.
214
+ - Now will play nicely in case any other plugins specify additional cron schedules.
215
+ - Minor cosmetic fixes.
216
+
217
+
218
+ ### 0.1 ###
219
+
220
+ - Super basic, look at what's in WP-Cron functionality.
221
+
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.0
9
  * Text Domain: wp-crontrol
10
  * Domain Path: /languages/
11
  * Requires PHP: 5.3.6
@@ -259,7 +259,7 @@ function action_handle_posts() {
259
  wp_safe_redirect( add_query_arg( $redirect, admin_url( 'options-general.php' ) ) );
260
  exit;
261
 
262
- } elseif ( isset( $_POST['action'] ) && 'delete_crons' === $_POST['action'] ) {
263
  if ( ! current_user_can( 'manage_options' ) ) {
264
  wp_die( esc_html__( 'You are not allowed to delete cron events.', 'wp-crontrol' ), 401 );
265
  }
@@ -881,19 +881,19 @@ function show_cron_form( array $events, $editing, $is_php = null ) {
881
  <p class="description">
882
  <?php
883
  printf(
884
- /* translators: 1: Date/time format for an input field, 2: PHP function name. */
885
- esc_html__( 'Format: %1$s or anything accepted by %2$s', 'wp-crontrol' ),
886
- '<code>YYYY-MM-DD HH:MM:SS</code>',
887
- '<a href="https://www.php.net/manual/function.strtotime.php"><code>strtotime()</code></a>'
888
  );
889
  ?>
890
  </p>
891
  <p class="description">
892
  <?php
893
  printf(
894
- /* translators: %s Timezone name. */
895
- esc_html__( 'Timezone: %s', 'wp-crontrol' ),
896
- esc_html( get_timezone_name() )
 
897
  );
898
  ?>
899
  </p>
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.1
9
  * Text Domain: wp-crontrol
10
  * Domain Path: /languages/
11
  * Requires PHP: 5.3.6
259
  wp_safe_redirect( add_query_arg( $redirect, admin_url( 'options-general.php' ) ) );
260
  exit;
261
 
262
+ } elseif ( ( isset( $_POST['action'] ) && 'delete_crons' === $_POST['action'] ) || ( isset( $_POST['action2'] ) && 'delete_crons' === $_POST['action2'] ) ) {
263
  if ( ! current_user_can( 'manage_options' ) ) {
264
  wp_die( esc_html__( 'You are not allowed to delete cron events.', 'wp-crontrol' ), 401 );
265
  }
881
  <p class="description">
882
  <?php
883
  printf(
884
+ /* translators: %s Timezone name. */
885
+ esc_html__( 'Timezone: %s', 'wp-crontrol' ),
886
+ esc_html( get_timezone_name() )
 
887
  );
888
  ?>
889
  </p>
890
  <p class="description">
891
  <?php
892
  printf(
893
+ /* translators: 1: Date/time format for an input field, 2: PHP function name. */
894
+ esc_html__( 'Format: %1$s or anything accepted by %2$s', 'wp-crontrol' ),
895
+ '<code>YYYY-MM-DD HH:MM:SS</code>',
896
+ '<a href="https://www.php.net/manual/function.strtotime.php"><code>strtotime()</code></a>'
897
  );
898
  ?>
899
  </p>