[wp-meta] [Making WordPress.org] #2143: Internationalize WordCamp Dashboard Widgets plugin

Making WordPress.org noreply at wordpress.org
Tue Jan 10 23:52:34 UTC 2017


#2143: Internationalize WordCamp Dashboard Widgets plugin
--------------------------------------+-----------------------
 Reporter:  iandunn                   |       Owner:  iandunn
     Type:  defect                    |      Status:  accepted
 Priority:  low                       |   Milestone:
Component:  WordCamp Site & Plugins   |  Resolution:
 Keywords:  good-first-bug has-patch  |
--------------------------------------+-----------------------

Comment (by coreymckrill):

 @chandrapatel Thanks for the patch! There are a few instances where the
 translation strings are not being escaped, probably because they contain
 HTML. In these cases, the strings should still be sanitized with
 `wp_kses()`. Something like this:

 {{{#!php
 <?php
 printf(
   wp_kses(
     __( 'Please send us <a href="%s">the "about" text and banner image</a>
 for your central.wordcamp.org page.', 'wordcamporg' ),
     array( 'a' => array( 'href' => true ) )
   ),
   'https://make.wordpress.org/community/handbook/wordcamp-organizer/first-
 steps/web-presence/your-page-on-central-wordcamp-org/'
 );
 ?>
 }}}

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2143#comment:4>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list