diff --git a/src/wp-includes/default-filters.php b/src/wp-includes/default-filters.php index 96b3687433b06..936bbb6a8673f 100644 --- a/src/wp-includes/default-filters.php +++ b/src/wp-includes/default-filters.php @@ -565,7 +565,6 @@ // 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' ); diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 4db40681bb6a5..58504e140a139 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -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' ) ); - } -}