Skip to content

Commit 632dda6

Browse files
committed
Editor: Set new default rendering mode for Pages
1 parent 83718be commit 632dda6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/wp-includes/post.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,16 @@ function create_initial_post_types() {
6262
'rewrite' => false,
6363
'query_var' => false,
6464
'delete_with_user' => true,
65-
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'page-attributes', 'custom-fields', 'comments', 'revisions' ),
65+
'supports' => array(
66+
'title',
67+
'author',
68+
'thumbnail',
69+
'page-attributes',
70+
'custom-fields',
71+
'comments',
72+
'revisions',
73+
'editor' => array( 'default_mode' => 'template-locked' ),
74+
),
6675
'show_in_rest' => true,
6776
'rest_base' => 'pages',
6877
'rest_controller_class' => 'WP_REST_Posts_Controller',

0 commit comments

Comments
 (0)