Make WordPress Core

Changeset 60076


Ignore:
Timestamp:
03/25/2025 06:43:22 AM (2 days ago)
Author:
Mamaduka
Message:

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.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r60033 r60076  
    566566// Post.
    567567add_action( 'init', 'create_initial_post_types', 0 ); // Highest priority.
    568 add_action( 'init', 'wp_set_editor_default_mode', 1 ); // Run after registering post types.
    569568add_action( 'admin_menu', '_add_post_type_submenus' );
    570569add_action( 'before_delete_post', '_reset_front_page_settings_for_post' );
  • TabularUnified trunk/src/wp-includes/post.php

    r59968 r60076  
    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 }
Note: See TracChangeset for help on using the changeset viewer.