[wp-trac] [WordPress Trac] #32817: Avoid HTML tags in translation strings (WP_Customize_Themes_Section)

WordPress Trac noreply at wordpress.org
Sun Jun 28 14:50:32 UTC 2015


#32817: Avoid HTML tags in translation strings (WP_Customize_Themes_Section)
----------------------------+------------------------------
 Reporter:  henrikakselsen  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Customize       |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by GaryJ):

 Hi @henrikakselsen, thanks for submitting your first report and patch!

 A couple of points:

 * The first pair of `echo` have got a pair of `()` around the content -
 these are not needed and should be removed.
 * Instead of using `.` to echo, you can use `,`, which has a slight
 performance benefit, as it echos the values straight away, instead of
 building up into a single string first.

 If you do a new patch, just upload it as the same name (leave the existing
 one there for historical reference), and Trac will append a suffix so that
 it becomes a new file name.

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


More information about the wp-trac mailing list