⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@scruffian
Copy link
Contributor

@scruffian scruffian commented Jan 8, 2026

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_OVERLAY constant to define a dedicated template part area for navigation overlays, providing more specificity than the generic "overlay" naming.

Changes

  • Adds new constant WP_TEMPLATE_PART_AREA_NAVIGATION_OVERLAY with value 'navigation-overlay' in src/wp-includes/block-template-utils.php

Context

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: getdave

Trac ticket: https://core.trac.wordpress.org/ticket/64334#ticket

…ant.

Introduces the `WP_TEMPLATE_PART_AREA_NAVIGATION_OVERLAY` constant to define a dedicated template part area for navigation overlays. This provides more specificity than the generic "overlay" naming and aligns with the navigation block's requirements.

Changes:
- Adds new constant `WP_TEMPLATE_PART_AREA_NAVIGATION_OVERLAY` with value `'navigation-overlay'`
- Registers the navigation overlay template part area in `get_allowed_block_template_part_areas()`
- Updates the label to "Navigation Overlay" for consistency
- Clarifies the description to be more specific about navigation overlay usage

Props: Contributors from Gutenberg PR #74444
See: WordPress/gutenberg#74444

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@github-actions
Copy link

github-actions bot commented Jan 8, 2026

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 props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props scruffian.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions
Copy link

github-actions bot commented Jan 8, 2026

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • The Plugin and Theme Directories cannot be accessed within Playground.
  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant