Make WordPress Core


Ignore:
Timestamp:
06/21/2015 12:58:12 AM (8 years ago)
Author:
azaozz
Message:

Update convert_chars():

  • Stop trying to remove <title> and <category> meta tags. They have not been used for many many years.
  • Replacement of <br> with <br /> and <hr> with <hr /> is not needed for HTML 5.0. Also, these tags are formatted like that by the visual editor.
  • Replace invalid HTML entities that might be pasted in the Text editor on save instead of on display.

Fixes #32335.

File:
1 edited

Legend:

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

    r32809 r32896  
    8888// Places to balance tags on input
    8989foreach ( array( 'content_save_pre', 'excerpt_save_pre', 'comment_save_pre', 'pre_comment_content' ) as $filter ) {
     90    add_filter( $filter, 'convert_invalid_entities' );
    9091    add_filter( $filter, 'balanceTags', 50 );
    9192}
Note: See TracChangeset for help on using the changeset viewer.