Ticket #2194: 2194.002.diff
File 2194.002.diff, 6.8 KB (added by , 13 years ago) |
---|
-
bp-activity/feeds/bp-activity-favorites-feed.php
38 38 39 39 <item> 40 40 <guid><?php bp_activity_thread_permalink() ?></guid> 41 <title>< ![CDATA[<?php bp_activity_feed_item_title() ?>]]></title>41 <title><?php bp_activity_feed_item_title() ?></title> 42 42 <link><?php echo bp_activity_thread_permalink() ?></link> 43 43 <pubDate><?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?></pubDate> 44 44 -
bp-activity/feeds/bp-activity-personal-feed.php
31 31 <?php while ( bp_activities() ) : bp_the_activity(); ?> 32 32 <item> 33 33 <guid><?php bp_activity_thread_permalink() ?></guid> 34 <title>< ![CDATA[<?php bp_activity_feed_item_title() ?>]]></title>34 <title><?php bp_activity_feed_item_title() ?></title> 35 35 <link><?php echo bp_activity_thread_permalink() ?></link> 36 36 <pubDate><?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?></pubDate> 37 37 -
bp-activity/feeds/bp-activity-mygroups-feed.php
36 36 <?php while ( bp_activities() ) : bp_the_activity(); ?> 37 37 <item> 38 38 <guid><?php bp_activity_thread_permalink() ?></guid> 39 <title>< ![CDATA[<?php bp_activity_feed_item_title() ?>]]></title>39 <title><?php bp_activity_feed_item_title() ?></title> 40 40 <link><?php echo bp_activity_thread_permalink() ?></link> 41 41 <pubDate><?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?></pubDate> 42 42 -
bp-activity/feeds/bp-activity-friends-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 echo 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/feeds/bp-activity-group-feed.php
31 31 <?php while ( bp_activities() ) : bp_the_activity(); ?> 32 32 <item> 33 33 <guid><?php bp_activity_thread_permalink() ?></guid> 34 <title>< ![CDATA[<?php bp_activity_feed_item_title() ?>]]></title>34 <title><?php bp_activity_feed_item_title() ?></title> 35 35 <link><?php echo bp_activity_thread_permalink() ?></link> 36 36 <pubDate><?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?></pubDate> 37 37 -
bp-activity/feeds/bp-activity-mentions-feed.php
31 31 <?php while ( bp_activities() ) : bp_the_activity(); ?> 32 32 <item> 33 33 <guid><?php bp_activity_thread_permalink() ?></guid> 34 <title>< ![CDATA[<?php bp_activity_feed_item_title() ?>]]></title>34 <title><?php bp_activity_feed_item_title() ?></title> 35 35 <link><?php echo bp_activity_thread_permalink() ?></link> 36 36 <pubDate><?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?></pubDate> 37 37 -
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-template.php
390 390 */ 391 391 function bp_activity_has_more_items() { 392 392 global $activities_template; 393 394 $remaining_pages = floor( ( $activities_template->total_activity_count - 1 ) / ( $activities_template->pag_num * $activities_template->pag_page ) ); 393 394 $remaining_pages = floor( ( $activities_template->total_activity_count - 1 ) / ( $activities_template->pag_num * $activities_template->pag_page ) ); 395 395 $has_more_items = (int)$remaining_pages ? true : false; 396 396 397 397 return apply_filters( 'bp_activity_has_more_items', $has_more_items ); 398 398 } 399 399 … … 500 500 } 501 501 function bp_get_activity_user_link() { 502 502 global $activities_template; 503 503 504 504 if ( empty( $activities_template->activity->user_id ) ) 505 505 $link = $activities_template->activity->primary_link; 506 506 else … … 718 718 719 719 if ( $bp->loggedin_user->is_super_admin ) 720 720 $can_delete = true; 721 721 722 722 if ( $activities_template->activity->user_id == $bp->loggedin_user->id ) 723 723 $can_delete = true; 724 724 725 725 if ( $bp->is_item_admin && $bp->is_single_item ) 726 726 $can_delete = true; 727 727 728 728 return apply_filters( 'bp_activity_user_can_delete', $can_delete ); 729 729 } 730 730 … … 1230 1230 $content = $activities_template->activity->content; 1231 1231 1232 1232 $content = explode( '<span', $content ); 1233 $title = trim( strip_tags( html_entity_decode( utf8_encode( $content[0] ) ) ) );1233 $title = strip_tags( ent2ncr( trim( convert_chars( $content[0] ) ) ) ); 1234 1234 1235 1235 if ( ':' == substr( $title, -1 ) ) 1236 1236 $title = substr( $title, 0, -1 ); … … 1270 1270 else 1271 1271 $content = $activities_template->activity->action . ' ' . $activities_template->activity->content; 1272 1272 1273 return apply_filters( 'bp_get_activity_feed_item_description', html_entity_decode( str_replace( '%s', '', $content) ) );1273 return apply_filters( 'bp_get_activity_feed_item_description', ent2ncr( convert_chars( str_replace( '%s', '', $content ) ) ) ); 1274 1274 } 1275 1275 1276 1276 /**