function testWhetherChecksIfCurrentRequestIsAWPRAdminRequest() { $_GET['page'] = $this->autoresponderPath; $this->assertEquals(true, Routing::isWPRAdminPage()); $_GET['page'] = "some_random_page.php"; $this->assertEquals(false, Routing::isWPRAdminPage()); }
private function isAdminPage() { return is_admin() && Routing::isWPRAdminPage() && !Routing::whetherLegacyURL($_GET['page']) || _wpr_actions_page(); }