Make WordPress Core

Ticket #28816: order.patch

File order.patch, 721 bytes (added by blowery, 10 years ago)

patch to apply ent2ncr after enc_html for the_title_rss

  • wp-includes/default-filters.php

    diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php
    index a0c5782..f4995b2 100644
    a b add_filter( 'wp_sprintf', 'wp_sprintf_l', 10, 2 ); 
    157157
    158158// RSS filters
    159159add_filter( 'the_title_rss',      'strip_tags'      );
    160 add_filter( 'the_title_rss',      'ent2ncr',      8 );
    161 add_filter( 'the_title_rss',      'esc_html'        );
     160add_filter( 'the_title_rss',      'esc_html',    10 );
     161add_filter( 'the_title_rss',      'ent2ncr',     11 );
    162162add_filter( 'the_content_rss',    'ent2ncr',      8 );
    163163add_filter( 'the_excerpt_rss',    'convert_chars'   );
    164164add_filter( 'the_excerpt_rss',    'ent2ncr',      8 );