Editor: Change hook for 'wp_set_editor_default_mode'.

This is a follow up to [59968], which moves the `wp_set_editor_default_mode()` callback to `init` to make sure the subsequent call to `create_initial_post_types()` doesn't overwrite the post type support settings.

Props mamaduka, psykro.
Fixes #61811.

Built from https://develop.svn.wordpress.org/trunk@60033


git-svn-id: http://core.svn.wordpress.org/trunk@59369 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Joe McGill
2025-03-17 20:11:26 +00:00
parent 9f51d473ef
commit 15c1c54906
2 changed files with 2 additions and 2 deletions

View File

@@ -565,6 +565,7 @@ 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' );
@@ -740,7 +741,6 @@ add_action( 'save_post_wp_template_part', 'wp_set_unique_slug_on_create_template
add_action( 'wp_enqueue_scripts', 'wp_enqueue_block_template_skip_link' );
add_action( 'wp_footer', 'the_block_template_skip_link' ); // Retained for backwards-compatibility. Unhooked by wp_enqueue_block_template_skip_link().
add_action( 'after_setup_theme', 'wp_enable_block_templates', 1 );
add_action( 'after_setup_theme', 'wp_set_editor_default_mode', 2 ); // Run after enabling block templates.
add_action( 'wp_loaded', '_add_template_loader_filters' );
// wp_navigation post type.

View File

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