Skip to:
Content

BuddyPress.org

Changeset 4373


Ignore:
Timestamp:
05/16/2011 09:19:51 PM (9 years ago)
Author:
boonebgorges
Message:

Fixes text encoding in RSS titles for better character support. Fixes #2194. Props cnorris23

Location:
trunk/bp-activity
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-template.php

    r4372 r4373  
    12731273
    12741274        $content = explode( '<span', $content );
    1275         $title = trim( strip_tags( html_entity_decode( utf8_encode( $content[0] ) ) ) );
     1275        $title = strip_tags( ent2ncr( trim( convert_chars( $content[0] ) ) ) );
    12761276
    12771277        if ( ':' == substr( $title, -1 ) )
     
    13131313            $content = $activities_template->activity->action . ' ' . $activities_template->activity->content;
    13141314
    1315         return apply_filters( 'bp_get_activity_feed_item_description', html_entity_decode( str_replace( '%s', '', $content ) ) );
     1315        return apply_filters( 'bp_get_activity_feed_item_description', ent2ncr( convert_chars( str_replace( '%s', '', $content ) ) ) );
    13161316    }
    13171317
  • trunk/bp-activity/feeds/bp-activity-favorites-feed.php

    r4145 r4373  
    3939            <item>
    4040                <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>
    4242                <link><?php echo bp_activity_thread_permalink() ?></link>
    4343                <pubDate><?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?></pubDate>
  • trunk/bp-activity/feeds/bp-activity-friends-feed.php

    r3503 r4373  
    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 echo 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>
  • trunk/bp-activity/feeds/bp-activity-group-feed.php

    r3771 r4373  
    3232            <item>
    3333                <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>
    3535                <link><?php echo bp_activity_thread_permalink() ?></link>
    3636                <pubDate><?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?></pubDate>
  • trunk/bp-activity/feeds/bp-activity-mentions-feed.php

    r3771 r4373  
    3232            <item>
    3333                <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>
    3535                <link><?php echo bp_activity_thread_permalink() ?></link>
    3636                <pubDate><?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?></pubDate>
  • trunk/bp-activity/feeds/bp-activity-mygroups-feed.php

    r3771 r4373  
    3737            <item>
    3838                <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>
    4040                <link><?php echo bp_activity_thread_permalink() ?></link>
    4141                <pubDate><?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?></pubDate>
  • trunk/bp-activity/feeds/bp-activity-personal-feed.php

    r3503 r4373  
    3232            <item>
    3333                <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>
    3535                <link><?php echo bp_activity_thread_permalink() ?></link>
    3636                <pubDate><?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?></pubDate>
  • trunk/bp-activity/feeds/bp-activity-sitewide-feed.php

    r3503 r4373  
    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>
Note: See TracChangeset for help on using the changeset viewer.