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

WordPress Trac noreply at wordpress.org
Mon Feb 29 18:13:47 UTC 2016


#36013: Avoid using HTML tags in translation strings (wp-
admin/includes/dashboard.php)
----------------------------+-----------------------------
 Reporter:  ramiy           |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  I18N            |    Version:
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 Old string:

 * `<span>%1$s, %2$s</span> <a href="%3$s" aria-label="%5$s">%4$s</a>`

 New string:

 * `<span>%1$s, %2$s</span> %3$s`

 ----

 I replaced `<a href="%3$s" aria-label="%5$s">%4$s</a>` with `%3$s`, moving
 the HTML out from the translation string.

 (See the attached patch)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36013>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list