Opened 10 years ago
Closed 10 years ago
#36729 closed defect (bug) (fixed)
Empty original title in class-walker-nav-menu-edit.php custom menu item type
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.6 | Priority: | normal |
| Severity: | normal | Version: | 3.0 |
| Component: | Menus | Keywords: | has-patch has-unit-tests |
| Focuses: | ui | Cc: |
Description
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
Attachments (2)
Change History (7)
Note: See
TracTickets for help on using
tickets.
Just for completness and better understanding, 36729.diff adds a test for that case.