Ticket #822: patch.diff
File patch.diff, 5.2 KB (added by , 16 years ago) |
---|
-
bp-friends.php
314 314 315 315 return array( 316 316 'primary_link' => bp_core_get_userlink( $friendship->friend_user_id, false, true ), 317 'content' => apply_filters( 'bp_friends_friendship_accepted_activity', sprintf( __( '% s and %s are now friends', 'buddypress' ), $user_1, $user_2 ) . ' <span class="time-since">%s</span>', $user_1, $user_2 )317 'content' => apply_filters( 'bp_friends_friendship_accepted_activity', sprintf( __( '%1$s and %2$s are now friends', 'buddypress' ), $user_1, $user_2 ) . ' <span class="time-since">%s</span>', $user_1, $user_2 ) 318 318 ); 319 319 } else { 320 320 … … 323 323 324 324 return array( 325 325 'primary_link' => bp_core_get_userlink( $friendship->friend_user_id, false, true ), 326 'content' => apply_filters( 'bp_friends_friendship_accepted_activity', sprintf( __( '% s and %s are now friends', 'buddypress' ), bp_core_get_userlink( $friendship->friend_user_id ), bp_core_get_userlink($friendship->initiator_user_id) ) . ' <span class="time-since">%s</span>', $user_1, $user_2 )326 'content' => apply_filters( 'bp_friends_friendship_accepted_activity', sprintf( __( '%1$s and %2$s are now friends', 'buddypress' ), bp_core_get_userlink( $friendship->friend_user_id ), bp_core_get_userlink($friendship->initiator_user_id) ) . ' <span class="time-since">%s</span>', $user_1, $user_2 ) 327 327 ); 328 328 } 329 329 break; -
bp-groups.php
1061 1061 1062 1062 return array( 1063 1063 'primary_link' => $group_link, 1064 'content' => apply_filters( 'bp_groups_joined_group_activity', sprintf( __('% s joined the group %s', 'buddypress'), $user_link, '<a href="' . $group_link . '">' . $group->name . '</a>' ) . ' <span class="time-since">%s</span>', $user_link, $group_link, $group->name )1064 'content' => apply_filters( 'bp_groups_joined_group_activity', sprintf( __('%1$s joined the group %2$s', 'buddypress'), $user_link, '<a href="' . $group_link . '">' . $group->name . '</a>' ) . ' <span class="time-since">%s</span>', $user_link, $group_link, $group->name ) 1065 1065 ); 1066 1066 break; 1067 1067 case 'created_group': … … 1075 1075 1076 1076 return array( 1077 1077 'primary_link' => $group_link, 1078 'content' => apply_filters( 'bp_groups_created_group_activity', sprintf( __('% s created the group %s', 'buddypress'), $user_link, '<a href="' . $group_link . '">' . $group->name . '</a>') . ' <span class="time-since">%s</span>', $user_link, $group_link, $group->name )1078 'content' => apply_filters( 'bp_groups_created_group_activity', sprintf( __('%1$s created the group %2$s', 'buddypress'), $user_link, '<a href="' . $group_link . '">' . $group->name . '</a>') . ' <span class="time-since">%s</span>', $user_link, $group_link, $group->name ) 1079 1079 ); 1080 1080 break; 1081 1081 case 'new_wire_post': -
bp-xprofile.php
511 511 $from_user_link = bp_core_get_userlink($wire_post->user_id); 512 512 $to_user_link = false; 513 513 514 $content = sprintf( __('% s wrote on their own wire', 'buddypress'), $from_user_link ) . ': <span class="time-since">%s</span>';514 $content = sprintf( __('%1$s wrote on their own wire', 'buddypress'), $from_user_link ) . ': <span class="time-since">%s</span>'; 515 515 $return_values['primary_link'] = bp_core_get_userlink( $wire_post->user_id, false, true ); 516 516 517 517 } else if ( ( $wire_post->item_id != $bp->loggedin_user->id && $wire_post->user_id == $bp->loggedin_user->id ) || ( $wire_post->item_id != $bp->displayed_user->id && $wire_post->user_id == $bp->displayed_user->id ) ) { … … 519 519 $from_user_link = bp_core_get_userlink($wire_post->user_id); 520 520 $to_user_link = bp_core_get_userlink( $wire_post->item_id, false, false, true, true ); 521 521 522 $content = sprintf( __('% s wrote on %s wire', 'buddypress'), $from_user_link, $to_user_link ) . ': <span class="time-since">%s</span>';522 $content = sprintf( __('%1$s wrote on %2$s wire', 'buddypress'), $from_user_link, $to_user_link ) . ': <span class="time-since">%s</span>'; 523 523 $return_values['primary_link'] = bp_core_get_userlink( $wire_post->item_id, false, true ); 524 524 525 525 } … … 547 547 548 548 return array( 549 549 'primary_link' => bp_core_get_userlink( $user_id, false, true ), 550 'content' => apply_filters( 'xprofile_updated_profile_activity', sprintf( __('% s updated the "%s" information on their profile', 'buddypress'), $user_link, '<a href="' . $bp->displayed_user->domain . $bp->profile->slug . '">' . $profile_group->name . '</a>' ) . ' <span class="time-since">%s</span>', $user_link, $profile_group->name )550 'content' => apply_filters( 'xprofile_updated_profile_activity', sprintf( __('%1$s updated the "%2$s" information on their profile', 'buddypress'), $user_link, '<a href="' . $bp->displayed_user->domain . $bp->profile->slug . '">' . $profile_group->name . '</a>' ) . ' <span class="time-since">%s</span>', $user_link, $profile_group->name ) 551 551 ); 552 552 break; 553 553 }