/**
  * Should the notice being given?
  *
  * @return bool
  */
 protected function should_show_notice()
 {
     // If development note is on or the tagline notice is shown, just don't show this notice.
     if (WPSEO_Utils::is_development_mode() || '0' === get_option('blog_public')) {
         return false;
     }
     return WPSEO_Utils::grant_access() && !$this->user_has_dismissed() && !$this->onpage_option->is_indexable();
 }
Exemple #2
0
 /**
  * Should the notice being given?
  *
  * @return bool
  */
 protected function should_show_notice()
 {
     // If development note is on or the tagline notice is shown, just don't show this notice.
     if (WPSEO_Utils::is_development_mode() || '0' === get_option('blog_public')) {
         return false;
     }
     return WPSEO_Utils::grant_access() && !$this->user_has_dismissed() && $this->onpage_option->get_status() === WPSEO_OnPage_Option::IS_NOT_INDEXABLE;
 }
Exemple #3
0
 /**
  * Should the notice being given?
  *
  * @return bool
  */
 protected function should_show_notice()
 {
     // If development mode is on or the blog is not public, just don't show this notice.
     if (WPSEO_Utils::is_development_mode() || '0' === get_option('blog_public')) {
         return false;
     }
     return $this->onpage_option->get_status() === WPSEO_OnPage_Option::IS_NOT_INDEXABLE;
 }