mirror of
git://develop.git.wordpress.org/
synced 2025-03-24 05:49:49 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@60033 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d6e3b8a9e2
commit
65f5e158ad
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user