__('Invalid security token', '404-solution')), 403); return; // @phpstan-ignore deadCode.unreachable } if (!abj_service('plugin_logic')->userIsPluginAdmin()) { wp_send_json_error(array('message' => __('Unauthorized', '404-solution')), 403); return; // @phpstan-ignore deadCode.unreachable } try { abj_service('logging')->infoMessage('AJAX authorized: ' . $action); } catch (\Throwable $e) { error_log('404 Solution: AJAX authorization logging failed for ' . $action . ' (code ' . $e->getCode() . '): ' . $e->getMessage()); } } }