/**
  * Redirects to 404 page if the requested author has 0 posts.
  *
  * @since 4.0
  *
  * @return void
  */
 public function disable_unused_author_pages()
 {
     global $wp_query;
     if (is_author() && $wp_query->post_count < 1) {
         ITSEC_Lib::set_404();
     }
 }
 /**
  * Filter the old login page out
  *
  * @return void
  */
 public function execute_hide_backend_login()
 {
     if (strpos($_SERVER['REQUEST_URI'], 'wp-login.php')) {
         //are we on the login page
         global $itsec_is_old_admin;
         $itsec_is_old_admin = true;
         ITSEC_Lib::set_404();
     }
 }
 /**
  * Sets 404 error at later time.
  *
  * @since 4.0.6
  *
  * @return void
  */
 public function set_404()
 {
     ITSEC_Lib::set_404();
 }