PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | src/presenters/admin/indexing-notification-presenter.php +17 -8 18.6 → trunk View file →
@@ -52,10 +52,10 @@
52 52 *
53 53 * @return string The HTML string representation of the notification.
54 54 */
55 55 public function present() {
56 - $notification_text = '<p>' . $this->get_message( $this->reason ) . '</p>';
57 - $notification_text .= '<p>' . $this->get_time_estimate( $this->total_unindexed ) . '</p>';
56 + $notification_text = '<p>' . $this->get_message( $this->reason );
57 + $notification_text .= $this->get_time_estimate( $this->total_unindexed ) . '</p>';
58 58 $notification_text .= '<a class="button" href="' . \get_admin_url( null, 'admin.php?page=wpseo_tools&start-indexation=true' ) . '">';
59 59 $notification_text .= \esc_html__( 'Start SEO data optimization', 'wordpress-seo' );
60 60 $notification_text .= '</a>';
61 61
@@ -82,10 +82,19 @@
82 82 break;
83 83 case Indexing_Reasons::REASON_TAG_BASE_PREFIX:
84 84 $text = \esc_html__( 'Because of a change in your tag base setting, some of your SEO data needs to be reprocessed.', 'wordpress-seo' );
85 85 break;
86 + case Indexing_Reasons::REASON_POST_TYPE_MADE_PUBLIC:
87 + $text = \esc_html__( 'We need to re-analyze some of your SEO data because of a change in the visibility of your post types. Please help us do that by running the SEO data optimization.', 'wordpress-seo' );
88 + break;
89 + case Indexing_Reasons::REASON_TAXONOMY_MADE_PUBLIC:
90 + $text = \esc_html__( 'We need to re-analyze some of your SEO data because of a change in the visibility of your taxonomies. Please help us do that by running the SEO data optimization.', 'wordpress-seo' );
91 + break;
92 + case Indexing_Reasons::REASON_ATTACHMENTS_MADE_ENABLED:
93 + $text = \esc_html__( 'It looks like you\'ve enabled media pages. We recommend that you help us to re-analyze your site by running the SEO data optimization.', 'wordpress-seo' );
94 + break;
86 95 default:
87 - $text = \esc_html__( 'You can speed up your site and get insight into your internal linking structure by letting us perform a few optimizations to the way SEO data is stored. ', 'wordpress-seo' );
96 + $text = \esc_html__( 'You can speed up your site and get insight into your internal linking structure by letting us perform a few optimizations to the way SEO data is stored.', 'wordpress-seo' );
88 97 }
89 98
90 99 /**
91 100 * Filter: 'wpseo_indexables_indexation_alert' - Allow developers to filter the reason of the indexation
@@ -104,22 +113,22 @@
104 113 * @return string The time estimate as a HTML string.
105 114 */
106 115 protected function get_time_estimate( $total_unindexed ) {
107 116 if ( $total_unindexed < 400 ) {
108 - return \esc_html__( 'We estimate this will take less than a minute.', 'wordpress-seo' );
117 + return \esc_html__( ' We estimate this will take less than a minute.', 'wordpress-seo' );
109 118 }
110 119
111 120 if ( $total_unindexed < 2500 ) {
112 - return \esc_html__( 'We estimate this will take a couple of minutes.', 'wordpress-seo' );
121 + return \esc_html__( ' We estimate this will take a couple of minutes.', 'wordpress-seo' );
113 122 }
114 123
115 - $estimate = \esc_html__( 'We estimate this could take a long time, due to the size of your site. As an alternative to waiting, you could:', 'wordpress-seo' );
124 + $estimate = \esc_html__( ' We estimate this could take a long time, due to the size of your site. As an alternative to waiting, you could:', 'wordpress-seo' );
116 125 $estimate .= '<ul class="ul-disc">';
117 126 $estimate .= '<li>';
118 127 $estimate .= \sprintf(
119 128 /* translators: 1: Expands to Yoast SEO */
120 129 \esc_html__( 'Wait for a week or so, until %1$s automatically processes most of your content in the background.', 'wordpress-seo' ),
121 - 'Yoast SEO'
130 + 'Yoast SEO',
122 131 );
123 132 $estimate .= '</li>';
124 133 $estimate .= '<li>';
125 134 $estimate .= \sprintf(
@@ -126,9 +135,9 @@
126 135 /* translators: 1: Link to article about indexation command, 2: Anchor closing tag, 3: Link to WP CLI. */
127 136 \esc_html__( '%1$sRun the indexation process on your server%2$s using %3$sWP CLI%2$s.', 'wordpress-seo' ),
128 137 '<a href="' . \esc_url( $this->short_link_helper->get( 'https://yoa.st/3-w' ) ) . '" target="_blank">',
129 138 '</a>',
130 - '<a href="https://wp-cli.org/" target="_blank">'
139 + '<a href="https://wp-cli.org/" target="_blank">',
131 140 );
132 141
133 142 $estimate .= '</li>';
134 143 $estimate .= '</ul>';