PluginProbe
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO / 2.12.0
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO v2.12.0
2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 trunk All 53 releases
← All changes | includes/seo/class-seo-analyzer-fixer.php +22 -12 2.6.0 → 2.12.0 View file →
@@ -300,22 +300,32 @@
300 300 ],
301 301 ];
302 302 }
303 303
304 + $message = $remaining > 0
305 + ? sprintf(
306 + /* translators: 1: images updated in this batch, 2: images still to process. */
307 + __('Added alt text to %1$d images. %2$d still to go — run the fix again to continue.', 'thinkrank'),
308 + $updated,
309 + $remaining
310 + )
311 + : sprintf(
312 + /* translators: %d: number of images updated. */
313 + __('Added alt text to %d images. Your media library is done.', 'thinkrank'),
314 + $updated
315 + );
316 +
317 + // The write is done, but a cache ThinkRank cannot reach still decides
318 + // what the visitor sees. Saying so beats a green toast over a page
319 + // that has not changed (#763).
320 + $warnings = (array) ($result['cache']['warnings'] ?? []);
321 + if ([] !== $warnings) {
322 + $message .= ' ' . implode(' ', $warnings);
323 + }
324 +
304 325 return [
305 326 'fixed' => true,
306 - 'message' => $remaining > 0
307 - ? sprintf(
308 - /* translators: 1: images updated in this batch, 2: images still to process. */
309 - __('Added alt text to %1$d images. %2$d still to go — run the fix again to continue.', 'thinkrank'),
310 - $updated,
311 - $remaining
312 - )
313 - : sprintf(
314 - /* translators: %d: number of images updated. */
315 - __('Added alt text to %d images. Your media library is done.', 'thinkrank'),
316 - $updated
317 - ),
327 + 'message' => $message,
318 328 'data' => [
319 329 'updated' => $updated,
320 330 'remaining' => $remaining,
321 331 ],