[wp-trac] [WordPress Trac] #35668: Avoid using HTML tags in translation strings (wp-admin/credits.php)

WordPress Trac noreply at wordpress.org
Wed Feb 24 18:50:25 UTC 2016


#35668: Avoid using HTML tags in translation strings (wp-admin/credits.php)
--------------------------+------------------------------
 Reporter:  ramiy         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  I18N          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by ramiy):

 Ok, last one. Option 8:

 {{{
 <p class="clear"><?php
         printf(
                 '%1$s <a href="%2$s">%3$s</a>.',
                 __( 'Want to see your name in lights on this page?' ),
                 esc_url( __( 'https://make.wordpress.org/' ) ),
                 __( 'Get involved in WordPress' )
         );
 ?></p>
 }}}

 This way you can't accidentally forget the placeholder, because the string
 has no placeholders.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35668#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list