WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WPSEO_Health_Check_Ryte::unknown_indexability_response() protected Yoast 1.0

Adds the content for the "Cannot tell if it can be indexed" response.

{} Это метод класса: WPSEO_Health_Check_Ryte{}

Хуков нет.


null. Ничего.


// protected - в коде основоного (родительского) или дочернего класса
$result = $this->unknown_indexability_response();

Код WPSEO_Health_Check_Ryte::unknown_indexability_response() Yoast 17.3

protected function unknown_indexability_response() {
	$this->label = sprintf(
		/* translators: %1$s: Expands to 'Ryte'. */
		esc_html__( '%1$s cannot determine whether your site can be found by search engines', 'wordpress-seo' ),
	$this->status         = self::STATUS_RECOMMENDED;
	$this->badge['color'] = 'red';

	/* translators: %1$s: Expands to 'Ryte', %2$s: Expands to 'Yoast SEO'. */
	$description        = esc_html__(
		'%1$s offers a free indexability check for %2$s users and right now it has trouble determining
		whether search engines can find your site. This could have several (legitimate) reasons and
		is not a problem in itself. If this is a live site, it is recommended that you figure out why
		the %1$s check failed.',
	$this->description  = sprintf(
		'Yoast SEO'
	$this->description .= '<br />';

	/* translators: %1$s: Expands to 'Ryte', %2$s: Link start tag to the Yoast help center, %3$s: Link closing tag. */
	$alert_text    = esc_html__(
		'As the indexability status of your website can only be fetched from %1$s every 15 seconds,
		a first step could be to wait at least 15 seconds and refresh the Site Health page. If that did not help,
		%2$sread more about troubleshooting search engine visibility%3$s.',
	$alert_content = sprintf(
		'<a href="' . esc_url( WPSEO_Shortlinker::get( 'https://yoa.st/onpagerequestfailed' ) ) . '" target="_blank">',
		WPSEO_Admin_Utils::get_new_tab_message() . '</a>'

	$alert              = new Alert_Presenter( $alert_content, 'info' );
	$this->description .= $alert->present();