This commit is contained in:
Prospress Inc
2017-06-09 16:36:26 +02:00
committed by Remco Tolsma
parent 5e536ec717
commit b99eba2f79
51 changed files with 1413 additions and 642 deletions

View File

@@ -5,24 +5,24 @@ Plugin URI: https://github.com/prospress/action-scheduler
Description: A robust action scheduler for WordPress
Author: Prospress
Author URI: http://prospress.com/
Version: 1.5.2
Version: 1.5.3
*/
if ( ! function_exists( 'action_scheduler_register_1_dot_5_dot_2' ) ) {
if ( ! function_exists( 'action_scheduler_register_1_dot_5_dot_3' ) ) {
if ( ! class_exists( 'ActionScheduler_Versions' ) ) {
require_once( 'classes/ActionScheduler_Versions.php' );
add_action( 'plugins_loaded', array( 'ActionScheduler_Versions', 'initialize_latest_version' ), 1, 0 );
}
add_action( 'plugins_loaded', 'action_scheduler_register_1_dot_5_dot_2', 0, 0 );
add_action( 'plugins_loaded', 'action_scheduler_register_1_dot_5_dot_3', 0, 0 );
function action_scheduler_register_1_dot_5_dot_2() {
function action_scheduler_register_1_dot_5_dot_3() {
$versions = ActionScheduler_Versions::instance();
$versions->register( '1.5.2', 'action_scheduler_initialize_1_dot_5_dot_2' );
$versions->register( '1.5.3', 'action_scheduler_initialize_1_dot_5_dot_3' );
}
function action_scheduler_initialize_1_dot_5_dot_2() {
function action_scheduler_initialize_1_dot_5_dot_3() {
require_once( 'classes/ActionScheduler.php' );
ActionScheduler::init( __FILE__ );
}

View File

@@ -29,7 +29,7 @@ class ActionScheduler_AdminView {
*/
public function init() {
if ( defined( 'WP_DEBUG' ) && true == WP_DEBUG && is_admin() && ( ! defined( 'DOING_AJAX' ) || false == DOING_AJAX ) ) {
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || false == DOING_AJAX ) ) {
add_filter( 'action_scheduler_post_type_args', array( self::instance(), 'action_scheduler_post_type_args' ) );
}
@@ -60,10 +60,10 @@ class ActionScheduler_AdminView {
public function action_scheduler_post_type_args( $args ) {
return array_merge( $args, array(
'show_ui' => true,
'show_in_menu' => 'tools.php',
'show_ui' => true,
'show_in_menu' => 'tools.php',
'show_in_admin_bar' => false,
));
) );
}
/**

View File

@@ -0,0 +1,9 @@
{
"name": "prospress/action-scheduler",
"version": "1.5.3",
"description": "Action Scheduler for WordPress and WooCommerce",
"type": "wordpress-plugin",
"license": "GPL-3.0",
"minimum-stability": "dev",
"require": {}
}