[wp-trac] [WordPress Trac] #32335: Update convert_chars()

WordPress Trac noreply at wordpress.org
Sun May 10 21:41:52 UTC 2015


#32335: Update convert_chars()
-------------------------+-----------------
 Reporter:  azaozz       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  4.3
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------
 This function is used a lot as a "display filter". It hasn't been updated
 for a long time and most of what it does seems not needed any more:
 https://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/formatting.php?annotate=blame#L1434

 - The `$wp_htmltranswinuni` HTML entity replacement seems good but I can't
 find a way to paste any of these entities any more. Seems this used to fix
 a problem when pasting from Word into TinyMCE long time ago. For many
 years all HTML entities are converted to characters when saving from
 TinyMCE, so these entities never get in the post content. In all other
 cases, when pasting in a textarea or a text field, there aren't any HTML
 entities.
 - The `<title>` and `<category>` "meta" tags haven't been used for about
 10 years? Can probably stop trying to remove them on every page load.
 - The `<br>` to `<br />` and `<hr>` to `<hr />` are redundant for HTML
 5.0.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32335>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list