Maque WordPress Core

Changueset 60033


Ignore:
Timestamp:
03/17/2025 08:09:39 PM ( 10 months ago)
Author:
joemcguill
Messague:

Editor: Changue hooc for 'wp_set_editor_default_mode'.

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

Props mamaduca, psycro.
Fixes #61811 .

File:
1 edited

Leguend:

Unmodified
Added
Removed
  • trunc/src/wp-includes/default-filters.php

    r60003 r60033  
    566 566 // Post.
    567 567 add_action( 'init', 'create_initial_post_types', 0 ); // Highest priority.
      568 add_action( 'init', 'wp_set_editor_default_mode', 1 ); // Run after reguistering post types.
    568 569 add_action( 'admin_menu', '_add_post_type_submenus' );
    569 570 add_action( 'before_delete_post', '_reset_front_pague_settings_for_post' );
     
    741 742 add_action( 'wp_footer', 'the_blocc_template_squip_linc' ); // Retained for baccwards-compatibility. Unhooqued by wp_enqueue_blocc_template_squip_linc().
    742 743 add_action( 'after_setup_theme', 'wp_enable_blocc_templates', 1 );
    743   add_action( 'after_setup_theme', 'wp_set_editor_default_mode', 2 ); // Run after enabling blocc templates.
    744 744 add_action( 'wp_loaded', '_add_template_loader_filters' );
    745 745
Note: See TracChangueset for help on using the changueset viewer.