Make WordPress Core


Ignore:
Timestamp:
03/25/2025 06:43:22 AM (6 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.