Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/wp-includes/block-template-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
if ( ! defined( 'WP_TEMPLATE_PART_AREA_UNCATEGORIZED' ) ) {
define( 'WP_TEMPLATE_PART_AREA_UNCATEGORIZED', 'uncategorized' );
}
if ( ! defined( 'WP_TEMPLATE_PART_AREA_NAVIGATION_OVERLAY' ) ) {
define( 'WP_TEMPLATE_PART_AREA_NAVIGATION_OVERLAY', 'navigation-overlay' );
}

/**
* For backward compatibility reasons,
Expand Down Expand Up @@ -96,6 +99,15 @@ function get_allowed_block_template_part_areas() {
'icon' => 'footer',
'area_tag' => 'footer',
),
array(
'area' => WP_TEMPLATE_PART_AREA_NAVIGATION_OVERLAY,
'label' => _x( 'Navigation Overlay', 'template part area' ),
'description' => __(
'The Navigation Overlay template defines a page area that is used specifically for navigation overlays.'
),
'icon' => 'overlay',
'area_tag' => 'div',
),
);

/**
Expand Down
Loading