-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for advanced menu item properties to Navigation screen #25062
Conversation
Size Change: +48 B (0%) Total Size: 1.2 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
xfn: block.attributes.rel.split( ' ' ), | ||
classes: block.attributes.className.split( ' ' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This throws an error when rel
or className
is undefined
.
- Add a new link to the Navigation screen.
- Click Save.
- Note the There was an error. message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, I'll fix it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here: #25229
Description
Navigation link blocks in Navigation screen now sync their advanced properties with their corresponding menu items.
How has this been tested?
Add description, classname, rel or link title to Navigation link block in Navigation screen. Check that they are reflected in
nav-menus.php
. Add properties to menu item innav-menus.php
and check that they are reflected in Navigation screen. Also check that rel, classname and link title render correctly in the front end.Screenshots
Types of changes
New feature (non-breaking change which adds functionality)
Checklist: