Changeset 61036 for trunk/src/wp-includes/post.php
- Timestamp:
- 10/21/2025 02:00:33 PM (4 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r61029 r61036 369 369 'wp_template', 370 370 array( 371 'labels' => array(371 'labels' => array( 372 372 'name' => _x( 'Templates', 'post type general name' ), 373 373 'singular_name' => _x( 'Template', 'post type singular name' ), … … 390 390 'item_updated' => __( 'Template updated.' ), 391 391 ), 392 'description' => __( 'Templates to include in your theme.' ),393 'public' => false,394 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */395 '_edit_link' => $template_edit_link, /* internal use only. don't use this when registering your own post type. */396 'has_archive' => false,397 'show_ui' => false,398 'show_in_menu' => false,399 'show_in_rest' => true,400 'rewrite' => false,401 'rest_base' => 'wp_template',402 'rest_controller_class' => 'WP_REST_Posts_Controller',403 'late_route_registration' => true,404 'capability_type' => array( 'template', 'templates' ),405 'capabilities' => array(392 'description' => __( 'Templates to include in your theme.' ), 393 'public' => false, 394 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 395 '_edit_link' => $template_edit_link, /* internal use only. don't use this when registering your own post type. */ 396 'has_archive' => false, 397 'show_ui' => false, 398 'show_in_menu' => false, 399 'show_in_rest' => true, 400 'rewrite' => false, 401 'rest_base' => 'wp_template', 402 'rest_controller_class' => 'WP_REST_Posts_Controller', 403 'late_route_registration' => true, 404 'capability_type' => array( 'template', 'templates' ), 405 'capabilities' => array( 406 406 'create_posts' => 'edit_theme_options', 407 407 'delete_posts' => 'edit_theme_options', … … 417 417 'read_private_posts' => 'edit_theme_options', 418 418 ), 419 'map_meta_cap' => true,420 'supports' => array(419 'map_meta_cap' => true, 420 'supports' => array( 421 421 'title', 422 422 'slug',
Note: See TracChangeset
for help on using the changeset viewer.