Skip to content

Commit a992ae4

Browse files
committed
Add const and area def
1 parent 6045c24 commit a992ae4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/wp-includes/block-template-utils.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
if ( ! defined( 'WP_TEMPLATE_PART_AREA_SIDEBAR' ) ) {
1717
define( 'WP_TEMPLATE_PART_AREA_SIDEBAR', 'sidebar' );
1818
}
19+
if ( ! defined( 'WP_TEMPLATE_PART_AREA_OVERLAY' ) ) {
20+
define( 'WP_TEMPLATE_PART_AREA_OVERLAY', 'overlay' );
21+
}
1922
if ( ! defined( 'WP_TEMPLATE_PART_AREA_UNCATEGORIZED' ) ) {
2023
define( 'WP_TEMPLATE_PART_AREA_UNCATEGORIZED', 'uncategorized' );
2124
}
@@ -96,6 +99,15 @@ function get_allowed_block_template_part_areas() {
9699
'icon' => 'footer',
97100
'area_tag' => 'footer',
98101
),
102+
array(
103+
'area' => WP_TEMPLATE_PART_AREA_OVERLAY,
104+
'label' => _x( 'Overlay', 'template part area' ),
105+
'description' => __(
106+
'The Overlay template defines areas that can be used to overlay the content of the page.'
107+
),
108+
'icon' => 'overlay',
109+
'area_tag' => 'div',
110+
),
99111
);
100112

101113
/**

0 commit comments

Comments
 (0)