-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Ensure consistent return type in WP_Navigation_Block_Renderer::get_markup_for_inner_block()
#59820
Conversation
Fixes get_markup_for_inner_block()
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
WP_Navigation_Block_Renderer::get_markup_for_inner_block()
FWIW, I have tested this locally and it does fix the issue. |
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 bug was identified during the RC period for WP 6.5. It represents potential for an error in the Navigation block and therefore should be included in WP 6.5. |
I just cherry-picked this PR to the update/packages-rc2-6.5 branch to get it included in the next release: ad56431 |
…arkup_for_inner_block()` (WordPress#59820) * Fix for WordPress#59814 Fixes get_markup_for_inner_block() * fix WPCS issues
Fixes get_markup_for_inner_block()
What?
moves return outside of conditional so method can return
''
instead ofnull
.Why?
Fixes #59814 and https://core.trac.wordpress.org/ticket/60762
How?
move return outside of conditional
Testing Instructions
An empty inner_block on a site triggers this error
Testing Instructions for Keyboard
Screenshots or screencast