[wp-trac] [WordPress Trac] #37191: i18n request: Escaping single and plural form translated text

WordPress Trac noreply at wordpress.org
Tue Jul 26 15:11:52 UTC 2016


#37191: i18n request: Escaping single and plural form translated text
-----------------------------+------------------------------
 Reporter:  henry.wright     |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  I18N             |     Version:  4.5.3
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------------------
Changes (by henry.wright):

 * keywords:   => has-patch


Comment:

 37191.diff introduces two new functions:

  - {{{esc_html_n()}}}
  - {{{esc_attr_n()}}}

 Each just escapes the string returned by {{{_n()}}} for safe output.

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


More information about the wp-trac mailing list