[wp-trac] Re: [WordPress Trac] #9650: attribute_escape() shortcuts

WordPress Trac wp-trac at lists.automattic.com
Tue May 5 19:45:46 GMT 2009


#9650: attribute_escape() shortcuts
---------------------------+------------------------------------------------
 Reporter:  ryan           |        Type:  defect (bug)
   Status:  new            |    Priority:  normal      
Milestone:  2.8            |   Component:  Formatting  
  Version:                 |    Severity:  normal      
 Keywords:  security i18n  |  
---------------------------+------------------------------------------------

Comment(by markjaquith):

 link2caro, considered that, but {{{_eattr_esc()}}} isn't very clear. The
 leading underscore makes it ideal as a suffix. Also:

 {{{attribute_escape(__('string'));}}}

 Becomes:

 {{{esc_attr__('string');}}}

 Maps well.

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


More information about the wp-trac mailing list