PluginProbe
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO / 2.10.0
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO v2.10.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 1.0.0 1.0.1 All 51 releases
← All changes | includes/api/class-sitemap-endpoint.php +4 -7 2.9.0 → 2.10.0 View file →
@@ -482,18 +482,15 @@
482 482 $removal = $this->sitemap_generator->delete_published_sitemaps();
483 483 $stuck = is_array($removal['failed'] ?? null) ? $removal['failed'] : [];
484 484
485 485 // A stale file shadows the dynamic route, so this is a real
486 - // failure rather than a tidy-up that did not matter.
486 + // failure rather than a tidy-up that did not matter. Worded by
487 + // the generator so this and its own rebuild paths cannot
488 + // describe the same stuck files differently (#764).
487 489 if (!empty($stuck)) {
488 490 return new WP_Error(
489 491 'sitemap_stale_files',
490 - sprintf(
491 - /* translators: 1: comma-separated file names, 2: absolute path to the WordPress root. */
492 - __('The sitemap is served by WordPress, but these files are still in the site root and your web server will keep serving them instead: %1$s. They could not be removed because %2$s is not writable.', 'thinkrank'),
493 - implode(', ', $stuck),
494 - untrailingslashit(ABSPATH)
495 - ),
492 + $this->sitemap_generator->stuck_files_message($stuck),
496 493 ['status' => 500]
497 494 );
498 495 }
499 496