Block Template Utils: Add navigation overlay template part area const… #10692
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Backports the changes from Gutenberg PR WordPress/gutenberg#74444 to rename the navigation overlay template part area.
This PR introduces the
WP_TEMPLATE_PART_AREA_NAVIGATION_OVERLAYconstant to define a dedicated template part area for navigation overlays, providing more specificity than the generic "overlay" naming.Changes
WP_TEMPLATE_PART_AREA_NAVIGATION_OVERLAYwith value'navigation-overlay'insrc/wp-includes/block-template-utils.phpContext
The Gutenberg PR renamed the generic "overlay" template part area to "navigation-overlay" for better clarity and specificity. This backport brings that constant definition to WordPress core.
The backport is minimal since WordPress core only needs the PHP constant definition. The JavaScript changes in the Gutenberg PR are bundled with the block library and will be included when the Gutenberg packages are synced to core.
There is an accompanying PR that was an earlier version of this here: #10581
Props:
getdaveTrac ticket: https://core.trac.wordpress.org/ticket/64334#ticket