Skip to:
Content

BuddyPress.org

Ticket #2194: 2194.001.diff

File 2194.001.diff, 2.0 KB (added by cnorris23, 9 years ago)
  • bp-activity/feeds/bp-activity-sitewide-feed.php

     
    3232                <?php while ( bp_activities() ) : bp_the_activity(); ?>
    3333                        <item>
    3434                                <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>
    3636                                <link><?php bp_activity_thread_permalink() ?></link>
    3737                                <pubDate><?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?></pubDate>
    3838
  • bp-activity/bp-activity-templatetags.php

     
    10281028                        $content = $activities_template->activity->content;
    10291029
    10301030                $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] ) ) ) );
    10321032
    10331033                if ( ':' == substr( $title, -1 ) )
    10341034                        $title = substr( $title, 0, -1 );
    10351035
    10361036                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 );
    10381038
    10391039                return apply_filters( 'bp_get_activity_feed_item_title', $title );
    10401040        }
     
    10681068                else
    10691069                        $content = $activities_template->activity->action . ' ' . $activities_template->activity->content;
    10701070
    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 ) ) ) );
    10721072        }
    10731073
    10741074?>
     1075 No newline at end of file