#38015 closed defect (bug) (fixed)
Customize: Nav menu items should preview using original object title if not title supplied
Reported by: | westonruter | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | 4.3 |
Component: | Customize | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
In wp_setup_nav_menu_item()
there is logic to set the nav menu item's title
to be the original post or term's title if no title is supplied. This logic is not getting applied when previewing in the customizer, however.
Attachments (2)
Change History (12)
This ticket was mentioned in Slack in #core by celloexpressions. View the logs.
8 years ago
#4
@
8 years ago
- Keywords commit removed
@celloexpressions I found a couple other situations where original_title
wasn't being used.
- Original title wasn't being used as the control title.
- Original title wasn't being used as a
placeholder
for the nav label input field.
And then the original title was being used where it shouldn't, namely when loading the customizer when a nav menu item that had an empty title it would get populate with the original title. So you could save the customizer with a blank title and then reload the customizer and you'd see the navigation label no longer empty.
See 38015.1.diff
Note: See
TracTickets for help on using
tickets.
Nice catch! Tested and the patch looks ready to commit to me.