WordPress.org

Make WordPress Core

Ticket #21753: 21753.diff

File 21753.diff, 1.3 KB (added by mdgl, 6 years ago)
  • wp-includes/default-filters.php

    diff -Naur wordpress-3.4.1/wp-includes/default-filters.php wordpress/wp-includes/default-filters.php
    old new  
    164164add_filter( 'the_title_rss',      'ent2ncr',      8 );
    165165add_filter( 'the_title_rss',      'esc_html'        );
    166166add_filter( 'the_content_rss',    'ent2ncr',      8 );
    167 add_filter( 'the_excerpt_rss',    'convert_chars'   );
    168 add_filter( 'the_excerpt_rss',    'ent2ncr',      8 );
    169167add_filter( 'comment_author_rss', 'ent2ncr',      8 );
    170168add_filter( 'comment_text_rss',   'ent2ncr',      8 );
    171169add_filter( 'comment_text_rss',   'esc_html'        );
  • wp-includes/feed.php

    diff -Naur wordpress-3.4.1/wp-includes/feed.php wordpress/wp-includes/feed.php
    old new  
    174174 * @uses apply_filters() Calls 'the_excerpt_rss' hook on the excerpt.
    175175 */
    176176function the_excerpt_rss() {
    177         $output = get_the_excerpt();
     177        $output = apply_filters('the_excerpt', get_the_excerpt());
     178        $output = str_replace(']]>', ']]>', $output);
    178179        echo apply_filters('the_excerpt_rss', $output);
    179180}
    180181