WPSEO_Metabox::render_internet_explorer_notice()publicYoast 1.0

Renders the content for the internet explorer metabox.

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

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WPSEO_Metabox = new WPSEO_Metabox();
$WPSEO_Metabox->render_internet_explorer_notice();

Код WPSEO_Metabox::render_internet_explorer_notice() Yoast 22.4

public function render_internet_explorer_notice() {
	$content = sprintf(
		/* translators: 1: Link start tag to the Firefox website, 2: Link start tag to the Chrome website, 3: Link start tag to the Edge website, 4: Link closing tag. */
		esc_html__( 'The browser you are currently using is unfortunately rather dated. Since we strive to give you the best experience possible, we no longer support this browser. Instead, please use %1$sFirefox%4$s, %2$sChrome%4$s or %3$sMicrosoft Edge%4$s.', 'wordpress-seo' ),
		'<a href="https://www.mozilla.org/firefox/new/">',
		'<a href="https://www.google.com/chrome/">',
		'<a href="https://www.microsoft.com/windows/microsoft-edge">',
		'</a>'
	);

	// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Output escaped above.
	echo new Alert_Presenter( $content );
}