Changeset 58201 for trunk/src/wp-includes/post.php
- Timestamp:
- 05/27/2024 09:04:10 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r58200 r58201 571 571 'wp_font_family', 572 572 array( 573 'labels' 573 'labels' => array( 574 574 'name' => __( 'Font Families' ), 575 575 'singular_name' => __( 'Font Family' ), 576 576 ), 577 'public' 578 '_builtin' 579 'hierarchical' 580 'capabilities' 577 'public' => false, 578 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 579 'hierarchical' => false, 580 'capabilities' => array( 581 581 'read' => 'edit_theme_options', 582 582 'read_private_posts' => 'edit_theme_options', … … 590 590 'delete_published_posts' => 'edit_theme_options', 591 591 ), 592 'map_meta_cap' => true, 593 'query_var' => false, 594 'rewrite' => false, 595 'show_in_rest' => true, 596 'rest_base' => 'font-families', 597 'rest_controller_class' => 'WP_REST_Font_Families_Controller', 598 // Disable autosave endpoints for font families. 599 'autosave_rest_controller_class' => 'stdClass', 592 'map_meta_cap' => true, 593 'query_var' => false, 594 'rewrite' => false, 595 'show_in_rest' => true, 596 'rest_base' => 'font-families', 597 'rest_controller_class' => 'WP_REST_Font_Families_Controller', 598 'supports' => array( 'title' ), 600 599 ) 601 600 ); … … 604 603 'wp_font_face', 605 604 array( 606 'labels' 605 'labels' => array( 607 606 'name' => __( 'Font Faces' ), 608 607 'singular_name' => __( 'Font Face' ), 609 608 ), 610 'public' 611 '_builtin' 612 'hierarchical' 613 'capabilities' 609 'public' => false, 610 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 611 'hierarchical' => false, 612 'capabilities' => array( 614 613 'read' => 'edit_theme_options', 615 614 'read_private_posts' => 'edit_theme_options', … … 623 622 'delete_published_posts' => 'edit_theme_options', 624 623 ), 625 'map_meta_cap' => true, 626 'query_var' => false, 627 'rewrite' => false, 628 'show_in_rest' => true, 629 'rest_base' => 'font-families/(?P<font_family_id>[\d]+)/font-faces', 630 'rest_controller_class' => 'WP_REST_Font_Faces_Controller', 631 // Disable autosave endpoints for font faces. 632 'autosave_rest_controller_class' => 'stdClass', 624 'map_meta_cap' => true, 625 'query_var' => false, 626 'rewrite' => false, 627 'show_in_rest' => true, 628 'rest_base' => 'font-families/(?P<font_family_id>[\d]+)/font-faces', 629 'rest_controller_class' => 'WP_REST_Font_Faces_Controller', 630 'supports' => array( 'title' ), 633 631 ) 634 632 ); … … 1720 1718 * 'page-attributes', 'thumbnail', 'custom-fields', and 'post-formats'. 1721 1719 * Additionally, the 'revisions' feature dictates whether the post type 1722 * will store revisions, and the 'comments' feature dictates whether the 1723 * comments count will show on the edit screen. A feature can also be 1720 * will store revisions, the 'autosave' feature dictates whether the post type 1721 * will be autosaved, and the 'comments' feature dictates whether the 1722 * comments count will show on the edit screen. For backward compatibility reasons, 1723 * adding 'editor' support implies 'autosave' support too. A feature can also be 1724 1724 * specified as an array of arguments to provide additional information 1725 1725 * about supporting that feature. … … 2199 2199 * 2200 2200 * Additionally, the 'revisions' feature dictates whether the post type will 2201 * store revisions, and the 'comments' feature dictates whether the comments 2201 * store revisions, the 'autosave' feature dictates whether the post type 2202 * will be autosaved, and the 'comments' feature dictates whether the comments 2202 2203 * count will show on the edit screen. 2203 2204 *
Note: See TracChangeset
for help on using the changeset viewer.