Yoast\WP\SEO\Services\Health_Check
Default_Tagline_Runner::run
Runs the health check. Checks if the tagline is set to WordPress' default tagline, or to its set translation.
Метод класса: Default_Tagline_Runner{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Default_Tagline_Runner = new Default_Tagline_Runner(); $Default_Tagline_Runner->run();
Код Default_Tagline_Runner::run() Default Tagline Runner::run Yoast 27.7
public function run() {
$blog_description = \get_option( 'blogdescription' );
// We are using the WordPress internal translation.
// @TODO: This doesn't work when checking in a cron for some reason, investigate.
$translated_blog_description = \__( 'Just another WordPress site', 'default' );
$this->has_default_tagline = $translated_blog_description === $blog_description || $blog_description === self::DEFAULT_BLOG_DESCRIPTION;
}