[wp-trac] [WordPress Trac] #42639: _e() function should be deprecated.

WordPress Trac noreply at wordpress.org
Mon Nov 20 09:28:34 UTC 2017


#42639: _e() function should be deprecated.
-------------------------+-----------------------------
 Reporter:  rnaby        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  I18N         |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Most of the time this `_e()` is being caught by **PHPCS** for escaping and
 validation. And I noticed all of the time this `_e()` function can be
 replaced by more secure `esc_html_e` or `esc_attr_e`. So it seems like
 this `_e()` creates a confusion with these `esc_html_e` and `esc_attr_e`.
 Therefore I propose to deprecate this `_e()`.

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


More information about the wp-trac mailing list