From acbdd5c97d68d6572a1d73bf2eeac9a9603fd953 Mon Sep 17 00:00:00 2001 From: rboren Date: Tue, 4 Jan 2005 23:30:10 +0000 Subject: [PATCH] Feed fixes from MooKitty. git-svn-id: http://svn.automattic.com/wordpress/trunk@2046 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-atom.php | 12 +++++++++--- wp-includes/template-functions-post.php | 6 +++--- wp-rss2.php | 4 ++++ 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/wp-atom.php b/wp-atom.php index b8cfc6afe8..6d2ea65d6f 100644 --- a/wp-atom.php +++ b/wp-atom.php @@ -33,9 +33,15 @@ $more = 1; post_date_gmt); ?> - + + post_content ) ) : ?> ]]> - + + ]]> + + + ]]> + - \ No newline at end of file + diff --git a/wp-includes/template-functions-post.php b/wp-includes/template-functions-post.php index f5314f6626..7df01fbad6 100644 --- a/wp-includes/template-functions-post.php +++ b/wp-includes/template-functions-post.php @@ -142,7 +142,7 @@ function the_excerpt() { echo apply_filters('the_excerpt', get_the_excerpt()); } -function the_excerpt_rss($cut = 0, $encode_html = 0) { +function the_excerpt_rss($cut = 0, $encode_html = FALSE) { $output = get_the_excerpt(true); $output = convert_chars($output); @@ -152,7 +152,7 @@ function the_excerpt_rss($cut = 0, $encode_html = 0) { if ($encode_html == 1) { $output = wp_specialchars($output); $cut = 0; - } elseif ($encode_html == 0) { + } elseif ($encode_html === 0) { $output = make_url_footnote($output); } elseif ($encode_html == 2) { $output = strip_tags($output); @@ -448,4 +448,4 @@ function _page_level_out($parent, $page_tree, $args, $depth = 0) { } } -?> \ No newline at end of file +?> diff --git a/wp-rss2.php b/wp-rss2.php index 22d6a40168..581e10193b 100644 --- a/wp-rss2.php +++ b/wp-rss2.php @@ -38,7 +38,11 @@ $more = 1; + post_content ) ) : ?> ]]> + + ]]> +