PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.6
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.6
28.6 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 All 130 releases
← All changes | src/integrations/watchers/indexable-post-watcher.php +5 -0 trunk → 28.6 View file →
@@ -176,8 +176,13 @@
176 176 if ( $indexable->object_type !== 'post' ) {
177 177 return;
178 178 }
179 179
180 + if ( \is_a( $post, Indexable::class ) ) {
181 + \_deprecated_argument( __FUNCTION__, '17.7', 'The $old_indexable argument has been deprecated.' );
182 + $post = $this->post->get_post( $indexable->object_id );
183 + }
184 +
180 185 $this->update_relations( $post );
181 186 }
182 187
183 188 /**