[wp-trac] [WordPress Trac] #47723: Adding a custom link in nav-menus.php doesn't trim whitespace

WordPress Trac noreply at wordpress.org
Wed Jul 17 15:05:09 UTC 2019


#47723: Adding a custom link in nav-menus.php doesn't trim whitespace
--------------------------------+-----------------------------
 Reporter:  majemedia           |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Menus               |    Version:  5.2.2
 Severity:  minor               |   Keywords:  dev-feedback
  Focuses:  ui, administration  |
--------------------------------+-----------------------------
 When building a nav-menu and utilizing custom links the entered value
 isn't trimmed.

 Once you click 'Add to Menu':

 - If you have whitespace at the start: no url added to the custom link in
 the menu item
 - If you have whitespace at the end: %20 is added to the custom link

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


More information about the wp-trac mailing list