[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 07:54:46 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 SergeyBiryukov):

 I think it makes more sense to leave out HTML tags when there's no need
 for `sprintf()`, e.g. like `<p>` tags in help text (which is not the case
 here): [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.4.1/wp-admin/custom-
 header.php#L104

 Otto's example is essentially the same. It uses `sprintf()` for `$number`
 argument, not for HTML tags.

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


More information about the wp-trac mailing list