Changeset 8998
- Timestamp:
- 09/10/2014 05:07:46 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-template.php
r8942 r8998 661 661 global $blogs_template; 662 662 663 $r = wp_parse_args( $args, array( 664 'active_format' => true, 663 // Parse the activity format 664 $r = bp_parse_args( $args, array( 665 'active_format' => true 665 666 ) ); 666 667 668 // Backwards compatibilty for anyone forcing a 'true' active_format 669 if ( true === $r['active_format'] ) { 670 $r['active_format'] = __( 'active %s', 'buddypress' ); 671 } 672 673 // Blog has logged in at least one time 667 674 if ( isset( $blogs_template->blog->last_activity ) ) { 668 if ( ! empty( $r['active_format'] ) ) { 669 $last_activity = bp_core_get_last_activity( $blogs_template->blog->last_activity, __( 'active %s', 'buddypress' ) ); 670 } else { 671 $last_activity = bp_core_time_since( $blogs_template->blog->last_activity ); 672 } 675 676 // Backwards compatibility for pre 1.5 'ago' strings 677 $last_activity = ! empty( $r['active_format'] ) 678 ? bp_core_get_last_activity( $blogs_template->blog->last_activity, $r['active_format'] ) 679 : bp_core_time_since( $blogs_template->blog->last_activity ); 680 681 // Blog has never logged in or been active 673 682 } else { 674 683 $last_activity = __( 'Never active', 'buddypress' ); -
trunk/src/bp-members/bp-members-template.php
r8973 r8998 825 825 global $members_template; 826 826 827 // Parse the activ y format827 // Parse the activity format 828 828 $r = bp_parse_args( $args, array( 829 829 'active_format' => true
Note: See TracChangeset
for help on using the changeset viewer.