Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/22/2011 08:30:54 PM (15 years ago)
Author:
djpaul
Message:

Remove remaining · from templates.
Normalise output of bp_get_member_latest_update() and bp_get_activity_latest_update().
Swapped remaing $bp->activity->root_slug for bp_get_activity_root_slug(). See #3325

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-template.php

    r4804 r4809  
    11511151        global $bp;
    11521152
    1153         return apply_filters( 'bp_get_activity_comment_form_action', home_url( $bp->activity->root_slug . '/reply/' ) );
     1153        return apply_filters( 'bp_get_activity_comment_form_action', home_url( bp_get_activity_root_slug() . '/reply/' ) );
    11541154    }
    11551155
     
    11791179    function bp_get_activity_favorite_link() {
    11801180        global $bp, $activities_template;
    1181         return apply_filters( 'bp_get_activity_favorite_link', wp_nonce_url( home_url( $bp->activity->root_slug . '/favorite/' . $activities_template->activity->id . '/' ), 'mark_favorite' ) );
     1181        return apply_filters( 'bp_get_activity_favorite_link', wp_nonce_url( home_url( bp_get_activity_root_slug() . '/favorite/' . $activities_template->activity->id . '/' ), 'mark_favorite' ) );
    11821182    }
    11831183
     
    11871187    function bp_get_activity_unfavorite_link() {
    11881188        global $bp, $activities_template;
    1189         return apply_filters( 'bp_get_activity_unfavorite_link', wp_nonce_url( home_url( $bp->activity->root_slug . '/unfavorite/' . $activities_template->activity->id . '/' ), 'unmark_favorite' ) );
     1189        return apply_filters( 'bp_get_activity_unfavorite_link', wp_nonce_url( home_url( bp_get_activity_root_slug() . '/unfavorite/' . $activities_template->activity->id . '/' ), 'unmark_favorite' ) );
    11901190    }
    11911191
     
    12681268            return false;
    12691269
    1270         $latest_update = '"' . apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], 358 ) ) ) ) . '"';
    1271         $latest_update .= ' &middot; <a href="' . bp_get_root_domain() . '/' . $bp->activity->root_slug . '/p/' . $update['id'] . '/"> ' . __( 'View', 'buddypress' ) . '</a>';
     1270        $latest_update = apply_filters( 'bp_get_activity_latest_update_excerpt', '&quot;' . trim( strip_tags( bp_create_excerpt( $update['content'], 358 ) ) ) . '&quot;' );
     1271        $latest_update .= ' <a href="' . bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $update['id'] . '/"> ' . __( 'View', 'buddypress' ) . '</a>';
    12721272
    12731273        return apply_filters( 'bp_get_activity_latest_update', $latest_update  );
Note: See TracChangeset for help on using the changeset viewer.