Changeset 4858 for trunk/bp-members/bp-members-template.php
- Timestamp:
- 07/25/2011 09:42:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-template.php
r4824 r4858 535 535 } 536 536 function bp_get_member_latest_update( $args = '' ) { 537 global $ members_template, $bp;537 global $bp, $members_template; 538 538 539 539 $defaults = array( 540 'length' => 70 540 'length' => 70, 541 'view_link' => true 541 542 ); 542 543 … … 547 548 return false; 548 549 549 $update_content = apply_filters( 'bp_get_activity_latest_update', '"' . trim( strip_tags( bp_create_excerpt( $update['content'], $length ) ) ) . '"');550 551 if ( !empty( $update['id'] ) && bp_is_active( 'activity' ) )550 $update_content = apply_filters( 'bp_get_activity_latest_update', sprintf( _x( '- " %s "', 'member latest update in member directory', 'buddypress' ), trim( strip_tags( bp_create_excerpt( $update['content'], $length ) ) ) ) ); 551 552 if ( $view_link && !empty( $update['id'] ) && bp_is_active( 'activity' ) ) 552 553 $update_content .= ' <a href="' . bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $update['id'] . '">' . __( 'View', 'buddypress' ) . '</a>'; 553 554
Note: See TracChangeset
for help on using the changeset viewer.