WordPress.org

Make WordPress Core

Changes between Version 4 and Version 5 of Ticket #46188, comment 2


Ignore:
Timestamp:
02/05/2019 01:39:14 PM (3 years ago)
Author:
KestutisIT
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #46188, comment 2

    v4 v5  
    3131}}}
    3232
    33 Regarding the `esc_textarea` - that would be a **BAD** decision, as it impacts all the other chars, I thing esc_textarea even DO NOT escapes single quotes. I mean the same title with just the need of span in via multiple lines is so much common case that I saw it over 1000 times in recent years, but only now everybody is bumping so much to the standards, so we need to finally make a solution for everybody, so I believe we need to add one more function to wp-includes\formatting.php or to add an additional parameter support to `esc_html`.
     33Regarding the `esc_textarea` - that would be a **BAD** decision, as it impacts all the other chars, it is dedicated to use inside `<textarea>` HTML tag, and probably `esc_textarea` does not escapes single quotes. I mean the same title with just the need of span in via multiple lines is so much common case that I saw it over 1000 times in recent years, but only now everybody is bumping so much to the standards, so we need to finally make a solution for everybody, so I believe we need to add one more function to wp-includes\formatting.php or to add an additional parameter support to `esc_html`.