Changeset 57548 for trunk/src/wp-includes/post.php
- Timestamp:
- 02/07/2024 09:18:38 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r57541 r57548 568 568 'wp_font_family', 569 569 array( 570 'labels' => array(570 'labels' => array( 571 571 'name' => __( 'Font Families' ), 572 572 'singular_name' => __( 'Font Family' ), 573 573 ), 574 'public' => false,575 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */576 'hierarchical' => false,577 'capabilities' => array(574 'public' => false, 575 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 576 'hierarchical' => false, 577 'capabilities' => array( 578 578 'read' => 'edit_theme_options', 579 579 'read_private_posts' => 'edit_theme_options', … … 587 587 'delete_published_posts' => 'edit_theme_options', 588 588 ), 589 'map_meta_cap' => true, 590 'query_var' => false, 591 'show_in_rest' => false, 592 'rewrite' => false, 589 'map_meta_cap' => true, 590 'query_var' => false, 591 'rewrite' => false, 592 'show_in_rest' => true, 593 'rest_base' => 'font-families', 594 'rest_controller_class' => 'WP_REST_Font_Families_Controller', 595 // Disable autosave endpoints for font families. 596 'autosave_rest_controller_class' => 'stdClass', 593 597 ) 594 598 ); … … 597 601 'wp_font_face', 598 602 array( 599 'labels' => array(603 'labels' => array( 600 604 'name' => __( 'Font Faces' ), 601 605 'singular_name' => __( 'Font Face' ), 602 606 ), 603 'public' => false,604 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */605 'hierarchical' => false,606 'capabilities' => array(607 'public' => false, 608 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 609 'hierarchical' => false, 610 'capabilities' => array( 607 611 'read' => 'edit_theme_options', 608 612 'read_private_posts' => 'edit_theme_options', … … 616 620 'delete_published_posts' => 'edit_theme_options', 617 621 ), 618 'map_meta_cap' => true, 619 'query_var' => false, 620 'show_in_rest' => false, 621 'rewrite' => false, 622 'map_meta_cap' => true, 623 'query_var' => false, 624 'rewrite' => false, 625 'show_in_rest' => true, 626 'rest_base' => 'font-families/(?P<font_family_id>[\d]+)/font-faces', 627 'rest_controller_class' => 'WP_REST_Font_Faces_Controller', 628 // Disable autosave endpoints for font faces. 629 'autosave_rest_controller_class' => 'stdClass', 622 630 ) 623 631 );
Note: See TracChangeset
for help on using the changeset viewer.