parent = $parent; } /** @return string */ public function handle(): string { if (!array_key_exists('remove', $_GET) || $_GET['remove'] != 1) { return ''; } if (!is_admin() || !$this->parent->verifyLinkNonce('abj404_removeRedirect')) { return ''; } $id = ABJ_404_Solution_ExactInteger::readOr($_GET['id'] ?? null, 1, 0); if ($id > 0) { $this->parent->getRedirectsRepo()->deleteRedirect($id); return __('Redirect Removed Successfully!', '404-solution'); } return ''; } }