diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 50e0082283..bf75246383 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -358,12 +358,8 @@ function get_lastcommentmodified( $timezone = 'server' ) { /** * Retrieves the total comment counts for the whole site or a single post. * - * Unlike wp_count_comments(), this function always returns the live comment counts without caching. - * * @since 2.0.0 * - * @global wpdb $wpdb WordPress database abstraction object. - * * @param int $post_id Optional. Restrict the comment counts to the given post. Default 0, which indicates that * comment counts for the whole site will be retrieved. * @return int[] { @@ -379,8 +375,6 @@ function get_lastcommentmodified( $timezone = 'server' ) { * } */ function get_comment_count( $post_id = 0 ) { - global $wpdb; - $post_id = (int) $post_id; $comment_count = array( diff --git a/wp-includes/version.php b/wp-includes/version.php index 99a57e9851..c47b795fd2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-beta2-53224'; +$wp_version = '6.0-beta2-53225'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.