Changeset 2046
- Timestamp:
- 01/04/05 23:30:10 (4 years ago)
- Files:
-
- trunk/wp-atom.php (modified) (1 diff)
- trunk/wp-includes/template-functions-post.php (modified) (2 diffs)
- trunk/wp-rss2.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-atom.php
r1888 r2046 34 34 <?php the_category_rss('rdf') ?> 35 35 <summary type="text/html" mode="escaped"><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></summary> 36 <?php if (!get_settings('rss_use_excerpt')) { ?> 36 <?php if (!get_settings('rss_use_excerpt')) : ?> 37 <?php if ( strlen( $post->post_content ) ) : ?> 37 38 <content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content> 38 <?php } ?> 39 <?php else : ?> 40 <content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></content> 41 <?php endif; ?> 42 <?php else : ?> 43 <content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_excerpt_rss('', 2) ?>]]></content> 44 <?php endif; ?> 39 45 </entry> 40 46 <?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?> trunk/wp-includes/template-functions-post.php
r2029 r2046 143 143 } 144 144 145 function the_excerpt_rss($cut = 0, $encode_html = 0) {145 function the_excerpt_rss($cut = 0, $encode_html = FALSE) { 146 146 $output = get_the_excerpt(true); 147 147 … … 153 153 $output = wp_specialchars($output); 154 154 $cut = 0; 155 } elseif ($encode_html == 0) {155 } elseif ($encode_html === 0) { 156 156 $output = make_url_footnote($output); 157 157 } elseif ($encode_html == 2) { trunk/wp-rss2.php
r1888 r2046 39 39 <?php else : ?> 40 40 <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description> 41 <?php if ( strlen( $post->post_content ) ) : ?> 41 42 <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded> 43 <?php else : ?> 44 <content:encoded><![CDATA[<?php the_excerpt_rss(); ?>]]></content:encoded> 45 <?php endif; ?> 42 46 <?php endif; ?> 43 47 <wfw:commentRSS><?php echo comments_rss(); ?></wfw:commentRSS>
