Skip to:
Content

BuddyPress.org

Ticket #1604: trailing-whitespace.patch

File trailing-whitespace.patch, 767 bytes (added by jivany, 16 years ago)

Use chop() to remove the trailing whitespace

  • bp-activity-templatetags.php

     
    570570                if ( !$update = get_usermeta( $user_id, 'bp_latest_update' ) )
    571571                        return false;
    572572
    573                 $latest_update = '"' . strip_tags( bp_create_excerpt( $update['content'], 40 ) ) . '"';
     573                $latest_update = '"' . chop( strip_tags( bp_create_excerpt( $update['content'], 40 ) ) ) . '"';
    574574                $latest_update .= ' &middot; <a href="' . $bp->root_domain . '/' . BP_ACTIVITY_SLUG . '/p/' . $update['id'] . '/"> ' . __( 'View Thread', 'buddypress' ) . '</a>';
    575575
    576576                return apply_filters( 'bp_get_activity_latest_update', $latest_update  );