Skip to:
Content

bbPress.org

Changeset 4647


Ignore:
Timestamp:
12/23/2012 08:03:08 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Fix topic and reply time since to use the correct parameters for get_post_time().

Location:
trunk/includes
Files:
2 edited

Legend:

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

    r4621 r4647  
    545545        // 4 days, 4 hours ago
    546546        if ( !empty( $humanize ) ) {
    547             $gmt    = !empty( $gmt ) ? 'G' : 'U';
    548             $date   = get_post_time( $gmt, $reply_id );
     547            $gmt_s  = !empty( $gmt ) ? 'G' : 'U';
     548            $date   = get_post_time( $gmt_s, $gmt, $reply_id );
     549            $result = $date;
    549550            $time   = false; // For filter below
    550             $result = bbp_get_time_since( $date );
     551            //$result = bbp_get_time_since( $date );
    551552
    552553        // August 4, 2012 at 2:37 pm
  • trunk/includes/topics/template-tags.php

    r4621 r4647  
    693693        // 4 days, 4 hours ago
    694694        if ( !empty( $humanize ) ) {
    695             $gmt    = !empty( $gmt ) ? 'G' : 'U';
    696             $date   = get_post_time( $gmt, $topic_id );
     695            $gmt_s  = !empty( $gmt ) ? 'U' : 'G';
     696            $date   = get_post_time( $gmt_s, $gmt, $topic_id );
    697697            $time   = false; // For filter below
    698698            $result = bbp_get_time_since( $date );
Note: See TracChangeset for help on using the changeset viewer.