Skip to content
Snippets Groups Projects
Commit 64439657 authored by Erick Hitter's avatar Erick Hitter
Browse files

Minor cleanup

parent d016d730
No related branches found
No related tags found
No related merge requests found
...@@ -118,7 +118,7 @@ class Delete_All { ...@@ -118,7 +118,7 @@ class Delete_All {
$screen = get_current_screen(); $screen = get_current_screen();
if ( isset( $_REQUEST[ self::ADMIN_NOTICE_KEY ] ) ) { if ( isset( $_REQUEST[ self::ADMIN_NOTICE_KEY ] ) ) {
if ( 1 === (int) $_REQUEST[self::ADMIN_NOTICE_KEY] ) { if ( 1 === (int) $_REQUEST[ self::ADMIN_NOTICE_KEY ] ) {
$class = 'notice-success'; $class = 'notice-success';
$message = __( 'Success! The trash will be emptied soon.', 'automattic-bulk-edit-cron-offload' ); $message = __( 'Success! The trash will be emptied soon.', 'automattic-bulk-edit-cron-offload' );
} else { } else {
......
...@@ -38,7 +38,7 @@ class Main { ...@@ -38,7 +38,7 @@ class Main {
// Pass request to a class to handle offloading to cron, UX, etc // Pass request to a class to handle offloading to cron, UX, etc
do_action( $action, $vars ); do_action( $action, $vars );
// Only skip Core's default handling when // Only skip Core's default handling when action is offloaded
if ( has_action( $action ) ) { if ( has_action( $action ) ) {
self::skip_core_processing(); self::skip_core_processing();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment