Make WordPress Core

Ticket #38369: 38369.diff

File 38369.diff, 551 bytes (added by kiranpotphode, 8 years ago)

Return type changed from int to string.

  • src/wp-includes/comment-template.php

     
    835835 * @since 1.5.0
    836836 *
    837837 * @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.
     838 * @return string The number of comments a post has.
    839839 */
    840840function get_comments_number( $post_id = 0 ) {
    841841        $post = get_post( $post_id );