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