[wp-trac] [WordPress Trac] #35732: Avoid using HTML tags in translation strings (wp-includes/widgets/class-wp-nav-menu-widget.php)

WordPress Trac noreply at wordpress.org
Thu Feb 4 22:34:39 UTC 2016


#35732: Avoid using HTML tags in translation strings (wp-includes/widgets/class-wp-
nav-menu-widget.php)
--------------------------+-----------------------------
 Reporter:  ramiy         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 See the attached patch.

 Trying to remove HTML tags from this translation string:
 `No menus have been created yet. <a href="%s">Create some</a>.`

 It's done by splitting this string to:

 1. `No menus have been created yet.`

 2. `Create some`

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


More information about the wp-trac mailing list