From 632dda68203668c269527f418e44496772bae8f1 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Wed, 15 Jan 2025 15:38:41 +0400 Subject: [PATCH] Editor: Set new default rendering mode for Pages --- src/wp-includes/post.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 98b9092f16f1f..114cd3ed26ed8 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -62,7 +62,16 @@ function create_initial_post_types() { 'rewrite' => false, 'query_var' => false, 'delete_with_user' => true, - 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'page-attributes', 'custom-fields', 'comments', 'revisions' ), + 'supports' => array( + 'title', + 'author', + 'thumbnail', + 'page-attributes', + 'custom-fields', + 'comments', + 'revisions', + 'editor' => array( 'default_mode' => 'template-locked' ), + ), 'show_in_rest' => true, 'rest_base' => 'pages', 'rest_controller_class' => 'WP_REST_Posts_Controller',