Make WordPress Core


Ignore:
Timestamp:
11/19/2015 11:31:00 PM (9 years ago)
Author:
pento
Message:

Texturize: Only convert & to & within text nodes.

Previously, & would be converted everywhere, which caused problems when it was converted within a <script>, for example.

convert_chars() is now removed from the the_content filter, as it was doing the same job as wptexturize().

KSES correctly handles converting & within HTML attributes, so there's no need for wptexturize() and convert_chars() to do the same job.

Fixes #34698.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r35689 r35709  
    132132add_filter( 'the_content', 'wptexturize'                       );
    133133add_filter( 'the_content', 'convert_smilies'                   );
    134 add_filter( 'the_content', 'convert_chars'                     );
    135134add_filter( 'the_content', 'wpautop'                           );
    136135add_filter( 'the_content', 'shortcode_unautop'                 );
Note: See TracChangeset for help on using the changeset viewer.