Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/24/2013 12:45:44 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Update bbp_time_since() to allow for GMT comparisons. Update Akismet to use bbp_time_since(). See #1616.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/extend/akismet.php

    r5050 r5051  
    756756     * @since bbPress (r5049)
    757757     *
    758      * @uses bbp_is_reply_anonymous() To check if reply is anonymous
    759      * @uses bbp_is_topic_anonymous() To check if topic is anonymous
    760      * @uses get_the_ID() To get the global post ID
    761      * @uses get_post_meta() To get the author user information
     758     * @uses get_post_history() To get the Akismet history for the post
     759     * @uses get_the_ID() To get the post ID
     760     * @uses bbp_time_since() To get the human readable time
    762761     */
    763762    public function history_metabox() {
     
    778777                                <td style="color: #999; text-align: right; white-space: nowrap;">
    779778                                    <span title="<?php echo esc_attr( date( 'D d M Y @ h:i:m a', $row['time'] ) . ' GMT' ); ?>">
    780                                         <?php printf( esc_html__( '%s ago' ), human_time_diff( $row['time'] ) ); ?>
     779                                        <?php bbp_time_since( $row['time'], false, true ); ?>
    781780                                    </span>
    782781                                </td>
Note: See TracChangeset for help on using the changeset viewer.