Skip to:
Content

bbPress.org

Changeset 5420


Ignore:
Timestamp:
06/27/2014 03:23:15 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Update a few documentation blocks in common/functions.php that had missing or incorrect references.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/functions.php

    r5417 r5420  
    6161 * @since bbPress (r2455)
    6262 *
    63  * @param int|object $post Optional. Default is global post object. A post_id or
    64  *                          post object
     63 * @param string $time Time to convert
    6564 * @param string $d Optional. Default is 'U'. Either 'G', 'U', or php date
    6665 *                             format
     
    7372 */
    7473function bbp_convert_date( $time, $d = 'U', $translate = false ) {
    75     $time = mysql2date( $d, $time, $translate );
    76 
    77     return apply_filters( 'bbp_convert_date', $time, $d, $translate );
     74    $new_time = mysql2date( $d, $time, $translate );
     75
     76    return apply_filters( 'bbp_convert_date', $new_time, $d, $translate, $time );
    7877}
    7978
     
    206205 * @since bbPress (r2782)
    207206 *
    208  * @param int $topic_id Optional. Topic id
     207 * @param string $reason Optional. User submitted reason for editing.
    209208 * @return string Status of topic
    210209 */
     
    213212
    214213    // Format reason for proper display
    215     if ( empty( $reason ) )
     214    if ( empty( $reason ) ) {
    216215        return $reason;
     216    }
    217217
    218218    // Trimming
     
    220220
    221221    // We add our own full stop.
    222     while ( substr( $reason, -1 ) === '.' )
     222    while ( substr( $reason, -1 ) === '.' ) {
    223223        $reason = substr( $reason, 0, -1 );
     224    }
    224225
    225226    // Trim again
Note: See TracChangeset for help on using the changeset viewer.