Skip to content

Commit

Permalink
Editor: Set new default rendering mode for Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Jan 15, 2025
1 parent 83718be commit 632dda6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/wp-includes/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 632dda6

Please sign in to comment.