diff --git a/wp-includes/post.php b/wp-includes/post.php index d6ab4db603..48906cd89b 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -3034,7 +3034,8 @@ function _count_posts_cache_key( $type = 'post', $perm = '' ) { * * @param string $type Optional. Post type to retrieve count. Default 'post'. * @param string $perm Optional. 'readable' or empty. Default empty. - * @return stdClass Number of posts for each status. + * @return stdClass An object containing the number of posts for each status, + * or an empty object if the post type does not exist. */ function wp_count_posts( $type = 'post', $perm = '' ) { global $wpdb; diff --git a/wp-includes/version.php b/wp-includes/version.php index d17928ec58..29496fb018 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-beta2-56119'; +$wp_version = '6.3-beta2-56120'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.