| @@ -36,36 +36,42 @@ | ||
| 36 | 36 | * |
| 37 | 37 | * @return string The error HTML. |
| 38 | 38 | */ |
| 39 | 39 | public function present() { |
| 40 | + $header = \sprintf( | |
| 41 | + /* translators: %s: Yoast SEO. */ | |
| 42 | + \esc_html__( '%s is unable to create database tables', 'wordpress-seo' ), | |
| 43 | + 'Yoast SEO', | |
| 44 | + ); | |
| 40 | 45 | $message = \sprintf( |
| 41 | 46 | /* translators: %s: Yoast SEO. */ |
| 42 | 47 | \esc_html__( '%s had problems creating the database tables needed to speed up your site.', 'wordpress-seo' ), |
| 43 | - 'Yoast SEO' | |
| 48 | + 'Yoast SEO', | |
| 44 | 49 | ); |
| 45 | 50 | $support = \sprintf( |
| 46 | 51 | /* translators: %1$s: link to help article about solving table issue. %2$s: is anchor closing. */ |
| 47 | 52 | \esc_html__( 'Please read %1$sthis help article%2$s to find out how to resolve this problem.', 'wordpress-seo' ), |
| 48 | 53 | '<a href="' . WPSEO_Shortlinker::get( 'https://yoa.st/3-6' ) . '">', |
| 49 | - '</a>' | |
| 54 | + '</a>', | |
| 50 | 55 | ); |
| 51 | 56 | $reassurance = \sprintf( |
| 52 | 57 | /* translators: %s: Yoast SEO. */ |
| 53 | 58 | \esc_html__( 'Your site will continue to work normally, but won\'t take full advantage of %s.', 'wordpress-seo' ), |
| 54 | - 'Yoast SEO' | |
| 59 | + 'Yoast SEO', | |
| 55 | 60 | ); |
| 56 | 61 | |
| 57 | 62 | $debug_info = \sprintf( |
| 58 | 63 | '<details><summary>%1$s</summary><p>%2$s</p></details>', |
| 59 | 64 | \esc_html__( 'Show debug information', 'wordpress-seo' ), |
| 60 | - \esc_html( $this->migration_error['message'] ) | |
| 65 | + \esc_html( $this->migration_error['message'] ), | |
| 61 | 66 | ); |
| 62 | 67 | |
| 63 | 68 | return \sprintf( |
| 64 | - '<div class="notice notice-error"><p>%1$s</p><p>%2$s</p><p>%3$s</p>%4$s</div>', | |
| 69 | + '<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>', | |
| 70 | + $header, | |
| 65 | 71 | $message, |
| 66 | 72 | $support, |
| 67 | 73 | $reassurance, |
| 68 | - $debug_info | |
| 74 | + $debug_info, | |
| 69 | 75 | ); |
| 70 | 76 | } |
| 71 | 77 | } |