Skip to content

Commit 2bf5a23

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@60076 602fd350-edb4-49c9-b593-d223f7449a82
1 parent a8b0726 commit 2bf5a23

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/wp-includes/default-filters.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,6 @@
565565

566566
// Post.
567567
add_action( 'init', 'create_initial_post_types', 0 ); // Highest priority.
568-
add_action( 'init', 'wp_set_editor_default_mode', 1 ); // Run after registering post types.
569568
add_action( 'admin_menu', '_add_post_type_submenus' );
570569
add_action( 'before_delete_post', '_reset_front_page_settings_for_post' );
571570
add_action( 'wp_trash_post', '_reset_front_page_settings_for_post' );

src/wp-includes/post.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8524,14 +8524,3 @@ function wp_create_initial_post_meta() {
85248524
)
85258525
);
85268526
}
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-
}

0 commit comments

Comments
 (0)