Skip to:
Content

bbPress.org

Changeset 4587


Ignore:
Timestamp:
12/20/2012 12:05:12 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Use correct bbp_get_time_since() function in _post_date() template tags for topics and replies. Fixes #2114.

Location:
trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/replies/template-tags.php

    r4579 r4587  
    537537     * @uses bbp_get_reply_id() To get the reply id
    538538     * @uses get_post_time() to get the reply post time
    539      * @uses bbp_time_since() to maybe humanize the reply post time
     539     * @uses bbp_get_time_since() to maybe humanize the reply post time
    540540     * @return string
    541541     */
     
    548548            $date   = get_post_time( $gmt, $reply_id );
    549549            $time   = false; // For filter below
    550             $result = bbp_time_since( $date );
     550            $result = bbp_get_time_since( $date );
    551551
    552552        // August 4, 2012 at 2:37 pm
  • trunk/includes/topics/template-tags.php

    r4579 r4587  
    685685     * @uses bbp_get_topic_id() To get the topic id
    686686     * @uses get_post_time() to get the topic post time
    687      * @uses bbp_time_since() to maybe humanize the topic post time
     687     * @uses bbp_get_time_since() to maybe humanize the topic post time
    688688     * @return string
    689689     */
     
    696696            $date   = get_post_time( $gmt, $topic_id );
    697697            $time   = false; // For filter below
    698             $result = bbp_time_since( $date );
     698            $result = bbp_get_time_since( $date );
    699699
    700700        // August 4, 2012 at 2:37 pm
Note: See TracChangeset for help on using the changeset viewer.