Changeset 5420
- Timestamp:
- 06/27/2014 03:23:15 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/common/functions.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/functions.php
r5417 r5420 61 61 * @since bbPress (r2455) 62 62 * 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 65 64 * @param string $d Optional. Default is 'U'. Either 'G', 'U', or php date 66 65 * format … … 73 72 */ 74 73 function 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 ); 78 77 } 79 78 … … 206 205 * @since bbPress (r2782) 207 206 * 208 * @param int $topic_id Optional. Topic id207 * @param string $reason Optional. User submitted reason for editing. 209 208 * @return string Status of topic 210 209 */ … … 213 212 214 213 // Format reason for proper display 215 if ( empty( $reason ) ) 214 if ( empty( $reason ) ) { 216 215 return $reason; 216 } 217 217 218 218 // Trimming … … 220 220 221 221 // We add our own full stop. 222 while ( substr( $reason, -1 ) === '.' ) 222 while ( substr( $reason, -1 ) === '.' ) { 223 223 $reason = substr( $reason, 0, -1 ); 224 } 224 225 225 226 // Trim again
Note: See TracChangeset
for help on using the changeset viewer.