[wp-trac] [WordPress Trac] #21698: Remove HTML from __() in load.php and wp_set_wpdb_vars()

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 27 14:12:45 UTC 2012


#21698: Remove HTML from __() in load.php and wp_set_wpdb_vars()
-------------------------+------------------------------
 Reporter:  mordauk      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  I18N         |     Version:
 Severity:  minor        |  Resolution:
 Keywords:  close        |
-------------------------+------------------------------

Comment (by mordauk):

 Line 139 of custom-header.php is:
 {{{
 '<p>' . __( '<a href="http://codex.wordpress.org/Appearance_Header_Screen"
 target="_blank">Documentation on Custom Header</a>' ) . '</p>'
 }}}

 That seems like a perfect place to use sprintf(). I can definitely agree
 that my original patch might be unnecessary, but how do you feel about
 this?

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


More information about the wp-trac mailing list