WordPress.org

Make WordPress Core

Changeset 4454


Ignore:
Timestamp:
11/08/06 06:57:26 (8 years ago)
Author:
ryan
Message:

Wrap cat name in CDATA. props alexkingorg. fixes #3252

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed.php

    r4393 r4454  
    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); 
Note: See TracChangeset for help on using the changeset viewer.