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

@@ -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,
));
) );
}
/**