Changeset 53225 for trunk/src/wp-includes/comment.php
- Timestamp:
- 04/20/2022 05:51:21 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r53036 r53225 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 *365 * @global wpdb $wpdb WordPress database abstraction object.366 362 * 367 363 * @param int $post_id Optional. Restrict the comment counts to the given post. Default 0, which indicates that … … 380 376 */ 381 377 function get_comment_count( $post_id = 0 ) { 382 global $wpdb;383 384 378 $post_id = (int) $post_id; 385 379
Note: See TracChangeset
for help on using the changeset viewer.