diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php
index 50e0082283..bf75246383 100644
|
a
|
b
|
function get_lastcommentmodified( $timezone = 'server' ) {
|
| 358 | 358 | /** |
| 359 | 359 | * Retrieves the total comment counts for the whole site or a single post. |
| 360 | 360 | * |
| 361 | | * Unlike wp_count_comments(), this function always returns the live comment counts without caching. |
| 362 | | * |
| 363 | 361 | * @since 2.0.0 |
| 364 | 362 | * |
| 365 | | * @global wpdb $wpdb WordPress database abstraction object. |
| 366 | | * |
| 367 | 363 | * @param int $post_id Optional. Restrict the comment counts to the given post. Default 0, which indicates that |
| 368 | 364 | * comment counts for the whole site will be retrieved. |
| 369 | 365 | * @return int[] { |
| … |
… |
function get_lastcommentmodified( $timezone = 'server' ) {
|
| 379 | 375 | * } |
| 380 | 376 | */ |
| 381 | 377 | function get_comment_count( $post_id = 0 ) { |
| 382 | | global $wpdb; |
| 383 | | |
| 384 | 378 | $post_id = (int) $post_id; |
| 385 | 379 | |
| 386 | 380 | $comment_count = array( |