| @@ -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 | /** |