| @@ -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 ) { |