Yoast\WP\SEO\Presenters\Admin
Migration_Error_Presenter::present
Presents the migration error that occurred.
Метод класса: Migration_Error_Presenter{}
Хуков нет.
Возвращает
Строку. The error HTML.
Использование
$Migration_Error_Presenter = new Migration_Error_Presenter(); $Migration_Error_Presenter->present();
Код Migration_Error_Presenter::present() Migration Error Presenter::present Yoast 27.7
public function present() {
$header = \sprintf(
/* translators: %s: Yoast SEO. */
\esc_html__( '%s is unable to create database tables', 'wordpress-seo' ),
'Yoast SEO',
);
$message = \sprintf(
/* translators: %s: Yoast SEO. */
\esc_html__( '%s had problems creating the database tables needed to speed up your site.', 'wordpress-seo' ),
'Yoast SEO',
);
$support = \sprintf(
/* translators: %1$s: link to help article about solving table issue. %2$s: is anchor closing. */
\esc_html__( 'Please read %1$sthis help article%2$s to find out how to resolve this problem.', 'wordpress-seo' ),
'<a href="' . WPSEO_Shortlinker::get( 'https://yoa.st/3-6' ) . '">',
'</a>',
);
$reassurance = \sprintf(
/* translators: %s: Yoast SEO. */
\esc_html__( 'Your site will continue to work normally, but won\'t take full advantage of %s.', 'wordpress-seo' ),
'Yoast SEO',
);
$debug_info = \sprintf(
'<details><summary>%1$s</summary><p>%2$s</p></details>',
\esc_html__( 'Show debug information', 'wordpress-seo' ),
\esc_html( $this->migration_error['message'] ),
);
return \sprintf(
'<div class="notice notice-error yoast-migrated-notice"><h4 class="yoast-notice-migrated-header">%1$s</h4><div class="notice-yoast-content"><p>%2$s</p><p>%3$s</p><p>%4$s</p>%5$s</div></div>',
$header,
$message,
$support,
$reassurance,
$debug_info,
);
}