[wp-trac] [WordPress Trac] #32008: Wrapper method for esc_attr

WordPress Trac noreply at wordpress.org
Sat Apr 18 04:35:46 UTC 2015


#32008: Wrapper method for esc_attr
-------------------------+-----------------------------
 Reporter:  welcher      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 I am proposing a wrapper method for esc_attr() that simply echo's the
 output of esc_attr(). It would save time and keystrokes.

 I don't believe that using `esc_attr__` or `esc_attr_e` for this purpose
 is correct. They should be used for translating the attribute and that is
 not part of this use case.

 Patch attached

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


More information about the wp-trac mailing list