diff --git a/wp-includes/class-wp-post.php b/wp-includes/class-wp-post.php index 2ce3144a86..7c8a71eee2 100644 --- a/wp-includes/class-wp-post.php +++ b/wp-includes/class-wp-post.php @@ -233,7 +233,7 @@ final class WP_Post { global $wpdb; $post_id = (int) $post_id; - if ( ! $post_id ) { + if ( $post_id <= 0 ) { return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index bdf3a85e56..bb491dc0fe 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.9-alpha-60653'; +$wp_version = '6.9-alpha-60654'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.