mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Missed a file and an easy mistake.
git-svn-id: https://develop.svn.wordpress.org/trunk@4804 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -146,11 +146,14 @@ function get_category_rss_link($echo = false, $cat_ID, $category_nicename) {
|
||||
|
||||
function get_the_category_rss($type = 'rss') {
|
||||
$categories = get_the_category();
|
||||
$home = get_bloginfo_rss('home');
|
||||
$the_list = '';
|
||||
foreach ( (array) $categories as $category ) {
|
||||
$category->cat_name = convert_chars($category->cat_name);
|
||||
if ( 'rdf' == $type )
|
||||
$the_list .= "\n\t\t<dc:subject><![CDATA[$category->cat_name]]></dc:subject>\n";
|
||||
if ( 'atom' == $type )
|
||||
$the_list .= "<category scheme='$home' term='$category->cat_name' />";
|
||||
else
|
||||
$the_list .= "\n\t\t<category><![CDATA[$category->cat_name]]></category>\n";
|
||||
}
|
||||
@@ -162,6 +165,15 @@ function the_category_rss($type = 'rss') {
|
||||
echo get_the_category_rss($type);
|
||||
}
|
||||
|
||||
function html_type_rss() {
|
||||
$type = bloginfo('html_type');
|
||||
if ( strstr( $type, 'xhtml' ) )
|
||||
$type = 'xhtml';
|
||||
else
|
||||
$type = 'html';
|
||||
echo $type;
|
||||
}
|
||||
|
||||
|
||||
function rss_enclosure() {
|
||||
global $id, $post;
|
||||
|
||||
Reference in New Issue
Block a user