[wp-trac] [WordPress Trac] #36729: Empty original tile in class-walker-nav-menu-edit.php custom menu item type

WordPress Trac noreply at wordpress.org
Sun May 1 05:58:07 UTC 2016


#36729: Empty original tile in class-walker-nav-menu-edit.php custom menu item type
----------------------------+-----------------------------
 Reporter:  grapplerulrich  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Menus           |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:  ui              |
----------------------------+-----------------------------
 When using a custom `menu-item-type` like `line_break`, "Original:"
 without a title is shown after adding the menu item to the menu.

 The reason for this is that `$original_title` is originally defined as a
 empty string but the check later on is `$original_title !== false`.

 My fix for this would be to define `$original_title = false` in the
 beginning

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


More information about the wp-trac mailing list