Changeset 4809 for trunk/bp-activity/bp-activity-template.php
- Timestamp:
- 07/22/2011 08:30:54 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-template.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-template.php
r4804 r4809 1151 1151 global $bp; 1152 1152 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/' ) ); 1154 1154 } 1155 1155 … … 1179 1179 function bp_get_activity_favorite_link() { 1180 1180 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' ) ); 1182 1182 } 1183 1183 … … 1187 1187 function bp_get_activity_unfavorite_link() { 1188 1188 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' ) ); 1190 1190 } 1191 1191 … … 1268 1268 return false; 1269 1269 1270 $latest_update = '"' . apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], 358 ) ) ) ) . '"';1271 $latest_update .= ' · <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', '"' . trim( strip_tags( bp_create_excerpt( $update['content'], 358 ) ) ) . '"' ); 1271 $latest_update .= ' <a href="' . bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $update['id'] . '/"> ' . __( 'View', 'buddypress' ) . '</a>'; 1272 1272 1273 1273 return apply_filters( 'bp_get_activity_latest_update', $latest_update );
Note: See TracChangeset
for help on using the changeset viewer.