Skip to content

Commit

Permalink
[Fixed] Undefined index: action class-batch-processor-admin.php
Browse files Browse the repository at this point in the history
Notice:  Undefined index: action in wp-content\plugins\wp-batch-processing-master\includes\class-batch-processor-admin.php on line 141
  • Loading branch information
varunsridharan authored Jul 2, 2019
1 parent 8be23a4 commit b1c9925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/class-batch-processor-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ private function is_batch_runner_ajax() {
private function is_batch_runner_screen( $action = null ) {
$is_main_screen = isset( $_GET['page'] ) && $_GET['page'] === 'dg-batches';
if ( ! is_null( $action ) ) {
$is_main_screen = $is_main_screen && $_GET['action'] === $action;
$is_main_screen = $is_main_screen && isset($_GET['action']) && $_GET['action'] === $action;
}

return $is_main_screen;
}
}

WP_Batch_Processor_Admin::get_instance();
WP_Batch_Processor_Admin::get_instance();

0 comments on commit b1c9925

Please sign in to comment.