[wp-trac] [WordPress Trac] #37057: Creation of an esc_html functions for _n(), _nx(), _ex(), and number_format_i18n()

WordPress Trac noreply at wordpress.org
Thu Aug 3 01:01:25 UTC 2017


#37057: Creation of an esc_html functions for _n(), _nx(), _ex(), and
number_format_i18n()
--------------------------------------+------------------------------
 Reporter:  zakkath                   |       Owner:
     Type:  feature request           |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  I18N                      |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |     Focuses:
--------------------------------------+------------------------------
Changes (by johnbillion):

 * keywords:   => needs-patch dev-feedback
 * focuses:  template =>
 * component:  General => I18N
 * version:  4.5.2 =>


Comment:

 Related: #37191, particularly the reason it was wontfixed.

 `esc_html_ex()` makes sense, but I don't think any of the others do
 because numbers are almost always passed through a formatting function
 such as `sprintf()` and therefore need later escaping.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37057#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list