Undefined arrray key in bulk action
-
PHP Warning: Undefined array key "action" in */wp-content/plugins/email-log/include/Core/Request/NonceChecker.php on line 66
It happens when using the bottom bulk action to delete log entries.
if ( isset( $_REQUEST['action'] ) || isset( $_REQUEST['action2'] ) ) { $action = sanitize_text_field( $_REQUEST['action'] );
Second kine could be rewritten into:
$action = sanitize_text_field( $_REQUEST['action'] ?? $_REQUEST['action2'] );
- You must be logged in to reply to this topic.