Changeset 61029 for trunk/src/wp-includes/post.php
- Timestamp:
- 10/21/2025 01:40:28 PM (5 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r60987 r61029 399 399 'show_in_rest' => true, 400 400 'rewrite' => false, 401 'rest_base' => 'templates', 402 'rest_controller_class' => 'WP_REST_Templates_Controller', 403 'autosave_rest_controller_class' => 'WP_REST_Template_Autosaves_Controller', 404 'revisions_rest_controller_class' => 'WP_REST_Template_Revisions_Controller', 401 'rest_base' => 'wp_template', 402 'rest_controller_class' => 'WP_REST_Posts_Controller', 405 403 'late_route_registration' => true, 406 404 'capability_type' => array( 'template', 'templates' ), … … 427 425 'revisions', 428 426 'author', 427 'custom-fields', 429 428 ), 430 429 ) … … 8630 8629 ) 8631 8630 ); 8632 } 8631 8632 // Allow setting the is_wp_suggestion meta field, which partly determines if 8633 // a template is a custom template. 8634 register_post_meta( 8635 'wp_template', 8636 'is_wp_suggestion', 8637 array( 8638 'type' => 'boolean', 8639 'show_in_rest' => true, 8640 'single' => true, 8641 ) 8642 ); 8643 }
Note: See TracChangeset
for help on using the changeset viewer.