Changeset 59968 for trunk/src/wp-includes/post.php
- Timestamp:
- 03/11/2025 12:31:07 PM (14 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r59885 r59968 69 69 ) 70 70 ); 71 72 // Enhance page editor for block themes by rendering template and content blocks.73 if ( wp_is_block_theme() && current_theme_supports( 'block-templates' ) ) {74 add_post_type_support( 'page', 'editor', array( 'default-mode' => 'template-locked' ) );75 }76 71 77 72 register_post_type( … … 8530 8525 ); 8531 8526 } 8527 8528 /** 8529 * Sets the default editor mode based on support for block templates. 8530 * 8531 * @since 6.8.0 8532 */ 8533 function wp_set_editor_default_mode() { 8534 if ( wp_is_block_theme() && current_theme_supports( 'block-templates' ) ) { 8535 add_post_type_support( 'page', 'editor', array( 'default-mode' => 'template-locked' ) ); 8536 } 8537 }
Note: See TracChangeset
for help on using the changeset viewer.