PluginProbe
Polylang / trunk
Polylang vtrunk
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | src/integrations/wpseo/wpseo.php +1 -1 3.8.3 → trunk View file →
@@ -265,9 +265,9 @@
265 265 } elseif ( $post_type_obj->has_archive ) {
266 266 // Exclude cases where a post type archive is attached to a page (ex: WooCommerce).
267 267 $slug = ( true === $post_type_obj->has_archive ) ? $post_type_obj->rewrite['slug'] : $post_type_obj->has_archive;
268 268
269 - if ( ! wpcom_vip_get_page_by_path( $slug ) ) {
269 + if ( ! get_page_by_path( $slug ) ) {
270 270 // The post type archive in the current language is already added by WPSEO.
271 271 $languages = wp_list_filter( $languages, array( 'slug' => pll_current_language() ), 'NOT' );
272 272
273 273 foreach ( $languages as $lang ) {