Skip to:
Content

BuddyPress.org

Changeset 3592 for trunk/bp-activity.php


Ignore:
Timestamp:
12/27/2010 10:57:31 PM (15 years ago)
Author:
djpaul
Message:

Removes trailing whitespace. Fixes #2965, props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity.php

    r3580 r3592  
    509509 * @package BuddyPress Activity
    510510 * @since 1.3
    511  * 
     511 *
    512512 * @param $content The content of the activity, usually found in $activity->content
    513513 * @return array $usernames Array of the found usernames that match existing users
     
    516516    $pattern = '/[@]+([A-Za-z0-9-_\.]+)/';
    517517    preg_match_all( $pattern, $content, $usernames );
    518    
     518
    519519    // Make sure there's only one instance of each username
    520520    if ( !$usernames = array_unique( $usernames[1] ) )
    521521        return false;
    522        
     522
    523523    return $usernames;
    524524}
     
    531531 * @package BuddyPress Activity
    532532 * @since 1.3
    533  * 
     533 *
    534534 * @param $activity_id The unique id for the activity item
    535535 */
    536536function bp_activity_reduce_mention_count( $activity_id ) {
    537537    $activity = new BP_Activity_Activity( $activity_id );
    538    
    539     if ( $usernames = bp_activity_find_mentions( strip_tags( $activity->content ) ) ) { 
     538
     539    if ( $usernames = bp_activity_find_mentions( strip_tags( $activity->content ) ) ) {
    540540        include_once( ABSPATH . WPINC . '/registration.php' );
    541        
    542         foreach( (array)$usernames as $username ) { 
     541
     542        foreach( (array)$usernames as $username ) {
    543543            if ( !$user_id = username_exists( $username ) )
    544544                continue;
    545    
     545
    546546            // Decrease the number of new @ mentions for the user
    547547            $new_mention_count = (int)get_user_meta( $user_id, 'bp_new_mention_count', true );
     
    578578            } else {
    579579                $user_fullname = bp_core_get_user_displayname( $poster_user_id );
    580                
     580
    581581                return apply_filters( 'bp_activity_single_at_mentions_notification', '<a href="' . $at_mention_link . '" title="' . $at_mention_title . '">' . sprintf( __( '%1$s mentioned you in an activity update', 'buddypress' ), $user_fullname ) . '</a>', $at_mention_link, $total_items, $activity_id, $poster_user_id );
    582582            }
     
    999999
    10001000            $image = '<img src="' . esc_attr( $src ) . '" width="' . $new_width . '" height="' . $new_height . '" alt="' . __( 'Thumbnail', 'buddypress' ) . '" class="align-left thumbnail" />';
    1001            
     1001
    10021002            if ( !empty( $link ) ) {
    10031003                $image = '<a href="' . $link . '">' . $image . '</a>';
     
    12241224/**
    12251225 * updates_register_activity_actions()
    1226  * 
     1226 *
    12271227 * Register the activity stream actions for updates
    1228  * 
     1228 *
    12291229 * @global array $bp
    12301230 */
Note: See TracChangeset for help on using the changeset viewer.