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/integrations/watchers/indexable-category-permalink-watcher.php +3 -0 18.5 → trunk View file →
@@ -1,8 +1,9 @@
1 1 <?php
2 2
3 3 namespace Yoast\WP\SEO\Integrations\Watchers;
4 4
5 +use WPSEO_Utils;
5 6 use Yoast\WP\SEO\Config\Indexing_Reasons;
6 7
7 8 /**
8 9 * Watches the stripcategorybase key in wpseo_titles, in order to clear the permalink of the category indexables.
@@ -47,7 +48,9 @@
47 48
48 49 // If a new value has been set for 'stripcategorybase', clear the category permalinks.
49 50 if ( $old_value['stripcategorybase'] !== $new_value['stripcategorybase'] ) {
50 51 $this->indexable_helper->reset_permalink_indexables( 'term', 'category', Indexing_Reasons::REASON_CATEGORY_BASE_PREFIX );
52 + // Clear the rewrites, so the new permalink structure is used.
53 + WPSEO_Utils::clear_rewrites();
51 54 }
52 55 }
53 56 }