Changeset 41285 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 08/20/2017 08:12:50 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r41217 r41285 831 831 832 832 /** 833 * Retrieve the amount of comments a post has.833 * Retrieves the amount of comments a post has. 834 834 * 835 835 * @since 1.5.0 836 836 * 837 * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post. 838 * @return int The number of comments a post has. 837 * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is the global `$post`. 838 * @return string|int If the post exists, a numeric string representing the number of comments 839 * the post has, otherwise 0. 839 840 */ 840 841 function get_comments_number( $post_id = 0 ) { … … 853 854 * @since 1.5.0 854 855 * 855 * @param int $count Number of comments a post has.856 * @param int $post_id Post ID.856 * @param string|int $count A string representing the number of comments a post has, otherwise 0. 857 * @param int $post_id Post ID. 857 858 */ 858 859 return apply_filters( 'get_comments_number', $count, $post_id );
Note: See TracChangeset
for help on using the changeset viewer.