Check for action2 in ewww_image_optimizer_bulk_action_handler
-
In my plugin I’m using the $_POST[‘action’] with not sending the action2 and getting this error:
<b>Notice</b>: Undefined index: action2 in <b>…/wp-content/plugins/ewww-image-optimizer/common.php</b> on line <b>3025</b>
Could you maybe check for both actions before checking in either of these?
empty( $_REQUEST[‘action’] )
To
empty( $_REQUEST[‘action’] ) || empty( $_REQUEST[‘action2’] )
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Check for action2 in ewww_image_optimizer_bulk_action_handler’ is closed to new replies.