-
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
Navigation: Update the function name and correct the comment #32918
Conversation
* | ||
* @param array $location The location of the classic menu to display. | ||
* @param array $attributes Navigation block attributes. | ||
* @return string|false HTML markup of a generated Navigation Block or false if no location is specified. | ||
*/ | ||
function render_classic_location_menu( $location, $attributes ) { | ||
function gutenberg_render_menu_from_location( $location, $attributes ) { |
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.
@scruffian Just noticed that these two lines look to be unused in the function as well:
$block_attributes = $attributes;
unset( $block_attributes['__unstableLocation'] );
And it looks like the second $attributes
param/argument to the function can be dropped too.
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.
You're right, thanks. Done!
Thanks! :) |
Description
This changes a function name and corrects an incorrect comment from #32491.
How has this been tested?
Using Quadrat, which implements this attribute
Screenshots
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.js
files for terms that need renaming or removal).