PluginProbe
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO / 2.9.0
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO v2.9.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 1.0.2 All 50 releases
← All changes | includes/api/class-setup-wizard-endpoint.php +13 -2 1.32.02.9.0 View file →
@@ -81,9 +81,9 @@
81 81 * Import_Controller::ALLOWED_PLUGINS so an arbitrary slug can never be stored.
82 82 *
83 83 * @var string[]
84 84 */
85 - const MIGRATABLE_PLUGINS = ['yoast', 'rankmath', 'seopress', 'aioseo'];
85 + const MIGRATABLE_PLUGINS = ['yoast', 'rankmath', 'seopress', 'aioseo', 'squirrly'];
86 86
87 87 /**
88 88 * Register API routes.
89 89 *
@@ -440,9 +440,20 @@
440 440
441 441 $generator = new \ThinkRank\SEO\Sitemap_Generator();
442 442 $settings = $generator->get_settings('site');
443 443
444 - if (empty($settings['enabled']) || !$generator->primary_sitemap_file_exists($settings)) {
444 + if (empty($settings['enabled'])) {
445 + return '';
446 + }
447 +
448 + // "Can ThinkRank answer this URL right now?" — not "is there a file?".
449 + // Dynamic delivery serves the sitemap from PHP and writes nothing, so a
450 + // file test alone hid the wizard's View Sitemap link on exactly the
451 + // sites where the sitemap was working (#752).
452 + $can_serve = 'dynamic' === $generator->resolve_delivery_mode($settings)
453 + || $generator->primary_sitemap_file_exists($settings);
454 +
455 + if (!$can_serve) {
445 456 return '';
446 457 }
447 458
448 459 return $generator->get_primary_sitemap_url($settings);