Indexing_Error_Presenter::generate_second_paragraph()protectedYoast 1.0

Generates the second paragraph of the error message to show when indexing failed.

The error message varies based on whether WordPress SEO Premium has a valid, activated subscription or not.

Метод класса: Indexing_Error_Presenter{}

Хуков нет.


Строку. The second paragraph of the error message.


// protected - в коде основоного (родительского) или дочернего класса
$result = $this->generate_second_paragraph( $is_premium, $has_valid_premium_subscription );
$is_premium(true|false) (обязательный)
Whether WordPress SEO Premium is currently active.
$has_valid_premium_subscription(true|false) (обязательный)
Whether WordPress SEO Premium currently has a valid subscription.

Код Indexing_Error_Presenter::generate_second_paragraph() Yoast 22.1

protected function generate_second_paragraph( $is_premium, $has_valid_premium_subscription ) {
	return \sprintf(
		/* translators: %1$s expands to an opening anchor tag for a link leading to the Premium installation page, %2$s expands to a closing anchor tag. */
			'Below are the technical details for the error. See %1$sthis page%2$s for a more detailed explanation.',
		'<a href="' . \esc_url( $this->short_link_helper->get( 'https://yoa.st/4f3' ) ) . '">',