Skip to content

Commit

Permalink
Merge branch 'release/2.5.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
BracketSpaceWorker committed Jul 26, 2023
2 parents 6abac7b + 836ba15 commit c070306
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions advanced-cron-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Advanced Cron Manager
* Description: View, pause, remove, edit and add WP Cron events.
* Version: 2.5.1
* Version: 2.5.2
* Author: BracketSpace
* Author URI: https://bracketspace.com
* License: GPL3
Expand All @@ -11,7 +11,7 @@
* @package advanced-cron-manager
*/

$plugin_version = '2.5.1';
$plugin_version = '2.5.2';
$plugin_file = __FILE__;

/**
Expand Down
9 changes: 8 additions & 1 deletion inc/Cron/EventsActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function insert() {

$args = array();

if ( $data['arguments'] ) {
if ( ! empty( $data['arguments'] ) ) {
foreach ( $data['arguments'] as $arg_raw ) {
if ( ! empty( $arg_raw ) ) {
$args[] = $arg_raw;
Expand Down Expand Up @@ -164,6 +164,13 @@ public function remove() {

// phpcs:ignore
$event = $this->events->get_event_by_hash( $_REQUEST['event'] );

if ( false === $event ) {
$this->ajax->response( false, array(
__( "This event doesn't exist anymore.", 'advanced-cron-manager' ),
) );
}

$errors = array();

$this->ajax->verify_nonce( 'acm/event/remove/' . $event->hash );
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: cron, wp cron, cron jobs, manager, cron manager, crontrol
Requires at least: 3.6
Requires PHP: 5.3
Tested up to: 6.3
Stable tag: 2.5.1
Stable tag: 2.5.2
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -100,6 +100,10 @@ Yes! We're offering a [custom plugin development](https://bracketspace.com/custo

== Changelog ==

= 2.5.2 =
* [Fixed] Warning while adding new event.
* [Changed] Adding a proper message when you try to delete non-existing event.

= 2.5.1 =
* [Fixed] Dynamic property notices.
* [Fixed] Notice when adding event without arguments.
Expand Down

0 comments on commit c070306

Please sign in to comment.