[wp-trac] [WordPress Trac] #19479: esc_html_e() is only for translations

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 13 00:26:17 UTC 2011


#19479: esc_html_e() is only for translations
------------------------------+---------------------
 Reporter:  nacin             |       Owner:  ryan
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  3.3
Component:  Widgets           |     Version:  3.3
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------

Comment (by nbachiyski):

 For the sake of completeness, I just want to mention that the parser is
 smart enough to only grab instances of gettext functions where they are
 called with literal strings. In these cases {{{esc_attr_e()}}} would have
 worked ok.

 Having said that, I agree it's bad style to rely on the parser smartness.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19479#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list