Ticket #2194: 2194.diff
File 2194.diff, 1.7 KB (added by , 14 years ago) |
---|
-
bp-activity/bp-activity-templatetags.php
419 419 } 420 420 function bp_get_activity_user_link() { 421 421 global $activities_template; 422 422 423 423 if ( empty( $activities_template->activity->user_id ) ) 424 424 $link = $activities_template->activity->primary_link; 425 425 else … … 638 638 639 639 if ( $bp->loggedin_user->is_super_admin ) 640 640 $can_delete = true; 641 641 642 642 if ( $activities_template->activity->user_id == $bp->loggedin_user->id ) 643 643 $can_delete = true; 644 644 645 645 if ( $bp->is_item_admin && $bp->is_single_item ) 646 646 $can_delete = true; 647 647 648 648 return apply_filters( 'bp_activity_user_can_delete', $can_delete ); 649 649 } 650 650 … … 1110 1110 $content = $activities_template->activity->content; 1111 1111 1112 1112 $content = explode( '<span', $content ); 1113 $title = trim( strip_tags( html_entity_decode( utf8_encode( $content[0] )) ) );1113 $title = trim( strip_tags( html_entity_decode( $content[0], ENT_COMPAT, 'UTF-8' ) ) ); 1114 1114 1115 1115 if ( ':' == substr( $title, -1 ) ) 1116 1116 $title = substr( $title, 0, -1 ); … … 1150 1150 else 1151 1151 $content = $activities_template->activity->action . ' ' . $activities_template->activity->content; 1152 1152 1153 return apply_filters( 'bp_get_activity_feed_item_description', html_entity_decode( str_replace( '%s', '', $content ) ) );1153 return apply_filters( 'bp_get_activity_feed_item_description', html_entity_decode( str_replace( '%s', '', $content ), ENT_COMPAT, 'UTF-8' ) ); 1154 1154 } 1155 1155 1156 1156 /** … … 1192 1192 <?php 1193 1193 } 1194 1194 add_action( 'bp_head', 'bp_dtheme_group_feed' ); 1195 ?> 1196 No newline at end of file 1195 ?>