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

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 26 20:11:13 GMT 2009


#9650: attribute_escape() shortcuts
--------------------------+-------------------------------------------------
 Reporter:  ryan          |       Owner:  anonymous 
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:            
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 attribute_escape() is often forgotten on value attributes, especially on
 translated messages.  Maybe some shortcuts would improve adoption. Use
 esc() as shorthand for atribute_escape() and add _e_esc() and _t_esc()
 which run translations through attribute_escape(), thus avoiding the need
 to do this: echo attribute_escape( __('Translated string') )

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


More information about the wp-trac mailing list