Changeset 60076
- Timestamp:
- 03/25/2025 06:43:22 AM (2 days ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/wp-includes/default-filters.php ¶
r60033 r60076 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 registering post types.569 568 add_action( 'admin_menu', '_add_post_type_submenus' ); 570 569 add_action( 'before_delete_post', '_reset_front_page_settings_for_post' ); -
TabularUnified trunk/src/wp-includes/post.php ¶
r59968 r60076 8525 8525 ); 8526 8526 } 8527 8528 /**8529 * Sets the default editor mode based on support for block templates.8530 *8531 * @since 6.8.08532 */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.