Editor: Revert the new default rendering mode for Pages.

This fully reverts changes from #61811 while leaving infrastructure in place for consumers to enable different default rendering modes for their post types.

Props mamaduka, joemcgill, mtdkei.
Fixes #63139.
Built from https://develop.svn.wordpress.org/trunk@60076


git-svn-id: http://core.svn.wordpress.org/trunk@59412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Mamaduka
2025-03-25 06:45:28 +00:00
parent 886fb31207
commit 3bad234b73
3 changed files with 1 additions and 13 deletions

View File

@@ -565,7 +565,6 @@ add_action( 'transition_post_status', '__clear_multi_author_cache' );
// Post.
add_action( 'init', 'create_initial_post_types', 0 ); // Highest priority.
add_action( 'init', 'wp_set_editor_default_mode', 1 ); // Run after registering post types.
add_action( 'admin_menu', '_add_post_type_submenus' );
add_action( 'before_delete_post', '_reset_front_page_settings_for_post' );
add_action( 'wp_trash_post', '_reset_front_page_settings_for_post' );

View File

@@ -8524,14 +8524,3 @@ function wp_create_initial_post_meta() {
)
);
}
/**
* Sets the default editor mode based on support for block templates.
*
* @since 6.8.0
*/
function wp_set_editor_default_mode() {
if ( wp_is_block_theme() && current_theme_supports( 'block-templates' ) ) {
add_post_type_support( 'page', 'editor', array( 'default-mode' => 'template-locked' ) );
}
}

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.8-beta3-60075';
$wp_version = '6.8-beta3-60076';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.