Ticket #2194: 2194.001.diff
File 2194.001.diff, 2.0 KB (added by , 13 years ago) |
---|
-
bp-activity/feeds/bp-activity-sitewide-feed.php
32 32 <?php while ( bp_activities() ) : bp_the_activity(); ?> 33 33 <item> 34 34 <guid><?php bp_activity_thread_permalink() ?></guid> 35 <title>< ![CDATA[<?php bp_activity_feed_item_title() ?>]]></title>35 <title><?php bp_activity_feed_item_title() ?></title> 36 36 <link><?php bp_activity_thread_permalink() ?></link> 37 37 <pubDate><?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?></pubDate> 38 38 -
bp-activity/bp-activity-templatetags.php
1028 1028 $content = $activities_template->activity->content; 1029 1029 1030 1030 $content = explode( '<span', $content ); 1031 $title = trim( strip_tags( html_entity_decode( utf8_encode( $content[0] ) ) ) );1031 $title = strip_tags( ent2ncr( trim( convert_chars( $content[0] ) ) ) ); 1032 1032 1033 1033 if ( ':' == substr( $title, -1 ) ) 1034 1034 $title = substr( $title, 0, -1 ); 1035 1035 1036 1036 if ( 'activity_update' == $activities_template->activity->type ) 1037 $title .= ': ' . strip_tags( bp_create_excerpt( $activities_template->activity->content, 15 ));1037 $title .= ': ' . bp_create_excerpt( $activities_template->activity->content, 15 ); 1038 1038 1039 1039 return apply_filters( 'bp_get_activity_feed_item_title', $title ); 1040 1040 } … … 1068 1068 else 1069 1069 $content = $activities_template->activity->action . ' ' . $activities_template->activity->content; 1070 1070 1071 return apply_filters( 'bp_get_activity_feed_item_description', html_entity_decode( str_replace( '%s', '', $content) ) );1071 return apply_filters( 'bp_get_activity_feed_item_description', ent2ncr( convert_chars( str_replace( '%s', '', $content ) ) ) ); 1072 1072 } 1073 1073 1074 1074 ?> 1075 No newline at end of file