diff --git a/includes/class-wpcom-legacy-redirector.php b/includes/class-wpcom-legacy-redirector.php index 420f3ef..c10c4a4 100644 --- a/includes/class-wpcom-legacy-redirector.php +++ b/includes/class-wpcom-legacy-redirector.php @@ -360,12 +360,8 @@ public static function check_if_404( $url ) { */ public static function vip_legacy_redirect_check_if_public( $excerpt ) { $post_types = get_post_types(); + $post_obj = get_page_by_path( $excerpt, OBJECT, $post_types ); - if ( function_exists( 'wpcom_vip_get_page_by_path' ) ) { - $post_obj = wpcom_vip_get_page_by_path( $excerpt, OBJECT, $post_types ); - } else { - $post_obj = get_page_by_path( $excerpt, OBJECT, $post_types ); - } if ( ! is_null( $post_obj ) ) { if ( 'publish' !== get_post_status( $post_obj->ID ) ) { return 'private'; diff --git a/wpcom-legacy-redirector.php b/wpcom-legacy-redirector.php index 63f5987..d402f6a 100644 --- a/wpcom-legacy-redirector.php +++ b/wpcom-legacy-redirector.php @@ -5,6 +5,7 @@ * Description: Simple plugin for handling legacy redirects in a scalable manner. * Version: 1.4.0-alpha * Requires PHP: 7.4 + * Requires at least: 6.1 * Author: Automattic / WordPress VIP * Author URI: https://wpvip.com *