WordPress.org

Make WordPress Core

Ticket #3252: patch.diff

File patch.diff, 681 bytes (added by alexkingorg, 8 years ago)

patch

  • feed.php

     
    135135        foreach ( (array) $categories as $category ) { 
    136136                $category->cat_name = convert_chars($category->cat_name); 
    137137                if ( 'rdf' == $type ) 
    138                         $the_list .= "\n\t\t<dc:subject>$category->cat_name</dc:subject>\n"; 
     138                        $the_list .= "\n\t\t<dc:subject><![CDATA[$category->cat_name]]></dc:subject>\n"; 
    139139                else 
    140                         $the_list .= "\n\t\t<category>$category->cat_name</category>\n"; 
     140                        $the_list .= "\n\t\t<category><![CDATA[$category->cat_name]]></category>\n"; 
    141141        } 
    142142        return apply_filters('the_category_rss', $the_list, $type); 
    143143}