Changeset 56209 for trunk/src/wp-includes/block-template.php
- Timestamp:
- 07/11/2023 11:31:48 AM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template.php
r56060 r56209 24 24 * 25 25 * @since 5.8.0 26 * @since 6.3.0 Added `$_wp_current_template_id` global for editing of current template directly from the admin bar. 26 27 * 27 28 * @global string $_wp_current_template_content 29 * @global string $_wp_current_template_id 28 30 * 29 31 * @param string $template Path to the template. See locate_template(). … … 33 35 */ 34 36 function locate_block_template( $template, $type, array $templates ) { 35 global $_wp_current_template_content ;37 global $_wp_current_template_content, $_wp_current_template_id; 36 38 37 39 if ( ! current_theme_supports( 'block-templates' ) ) { … … 65 67 66 68 if ( $block_template ) { 69 $_wp_current_template_id = $block_template->id; 70 67 71 if ( empty( $block_template->content ) && is_user_logged_in() ) { 68 72 $_wp_current_template_content =
Note: See TracChangeset
for help on using the changeset viewer.