Make WordPress Core

Changeset 28604


Ignore:
Timestamp:
05/28/2014 10:35:21 PM (10 years ago)
Author:
ocean90
Message:

Pass $post->ID to get_comments_number filter.

Also fixes indentation and a typo in corresponding filter docs.

see #26240.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment-template.php

    r28602 r28604  
    696696     * @since 1.5.0
    697697     *
    698      * @param int         $count   Nnumber of comments a post has.
     698     * @param int $count   Number of comments a post has.
    699699     * @param int $post_id Post ID.
    700700     */
    701     return apply_filters( 'get_comments_number', $count, $post_id );
     701    return apply_filters( 'get_comments_number', $count, $post->ID );
    702702}
    703703
Note: See TracChangeset for help on using the changeset viewer.