diff --git a/wp-includes/post.php b/wp-includes/post.php index a0933f1ffd..ebf7c7f3a9 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -7358,7 +7358,7 @@ function get_posts_by_author_sql( $post_type, $full = true, $post_author = null, $id = get_current_user_id(); if ( null === $post_author || ! $full ) { $post_status_sql .= " OR post_status = 'private' AND post_author = $id"; - } elseif ( $id == (int) $post_author ) { + } elseif ( $id === (int) $post_author ) { $post_status_sql .= " OR post_status = 'private'"; } // Else none. } // Else none. diff --git a/wp-includes/version.php b/wp-includes/version.php index e04ca9d679..8a52a916c8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59595'; +$wp_version = '6.8-alpha-59596'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.