diff --git a/wp-includes/post.php b/wp-includes/post.php index 15bbfc7ab2..4741d989fa 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1219,9 +1219,8 @@ function get_post_mime_type( $post = null ) { * @return string|false Post status on success, false on failure. */ function get_post_status( $post = null ) { - if ( $post instanceof WP_Post && isset( $post->filter ) && 'sample' === $post->filter ) { - // Skip normalization - } else { + // Normalize the post object if necessary, skip normalization if called from get_sample_permalink(). + if ( ! $post instanceof WP_Post || ! isset( $post->filter ) || 'sample' !== $post->filter ) { $post = get_post( $post ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index dd413a3f98..c9378a82cb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-58174'; +$wp_version = '6.6-alpha-58175'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.