Esempio n. 1
0
 public function is_current_screen()
 {
     $is_current_screen = parent::is_current_screen();
     if (!$is_current_screen) {
         if (!empty($_REQUEST['_ajax_nonce-replyto-comment']) && wp_verify_nonce($_REQUEST['_ajax_nonce-replyto-comment'], 'replyto-comment')) {
             $is_current_screen = true;
         }
     }
     return $is_current_screen;
 }
Esempio n. 2
0
 /**
  * @since 2.4.10
  */
 public function is_current_screen()
 {
     return !is_network_admin() && parent::is_current_screen();
 }
Esempio n. 3
0
 /**
  * @since 2.2
  */
 public function is_current_screen()
 {
     $post_type = isset($_REQUEST['post_type']) ? $_REQUEST['post_type'] : 'post';
     return $this->post_type === $post_type && parent::is_current_screen();
 }
Esempio n. 4
0
 /**
  * @since 2.2
  */
 public function is_current_screen()
 {
     $is_current_screen = parent::is_current_screen();
     if (!$is_current_screen) {
         if (!empty($_REQUEST['_inline_edit']) && wp_verify_nonce($_REQUEST['_inline_edit'], 'inlineeditnonce')) {
             $is_current_screen = true;
         }
     }
     return $is_current_screen;
 }
 /**
  * Test for current screen = the Media/Assistant submenu screen,
  * For Admin Columns 2.4.9+
  *
  * @since 2.23
  *
  * @return boolean true if the Media/Assistant submenu is the current screen
  */
 public function is_current_screen()
 {
     $is_current_screen = parent::is_current_screen();
     if (!$is_current_screen) {
         if (!empty($_REQUEST['page']) && MLACore::ADMIN_PAGE_SLUG == $_REQUEST['page']) {
             $is_current_screen = true;
         }
     }
     return $is_current_screen;
 }