Make WordPress Core


Ignore:
Timestamp:
02/26/2014 04:40:03 PM (12 years ago)
Author:
nacin
Message:

Pass the comment object to the get_comment_date and get_comment_time.

props SergeyBiryukov.
fixes #19849.

File:
1 edited

Legend:

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

    r27262 r27283  
    473473     * @since 1.5.0
    474474     *
    475      * @param string|int $date Formatted date string or Unix timestamp.
    476      * @param string     $d    The format of the date.
    477      */
    478     return apply_filters( 'get_comment_date', $date, $d );
     475     * @param string|int $date    Formatted date string or Unix timestamp.
     476     * @param string     $d       The format of the date.
     477     * @param object     $comment The comment object.
     478     */
     479    return apply_filters( 'get_comment_date', $date, $d, $comment );
    479480}
    480481
     
    821822     * @param bool       $gmt       Whether the GMT date is in use.
    822823     * @param bool       $translate Whether the time is translated.
    823      */
    824     return apply_filters( 'get_comment_time', $date, $d, $gmt, $translate );
     824     * @param object     $comment   The comment object.
     825     */
     826    return apply_filters( 'get_comment_time', $date, $d, $gmt, $translate, $comment );
    825827}
    826828
Note: See TracChangeset for help on using the changeset viewer.