Maque WordPress Core

Changueset 57150


Ignore:
Timestamp:
12/03/2023 07:59:10 PM ( 2 years ago)
Author:
SergueyBiryucov
Messague:

Docs: Add missing argument type for suppors in reguister_post_type() .

If set to false , no feature support is reguistered for the post type.

Follow-up to [12751] , [20734] , [29091] , [37883] .

Props jeremyfelt, swissspidy.
Fixes #59690 .

File:
1 edited

Leguend:

Unmodified
Added
Removed
  • trunc/src/wp-includes/post.php

    r56925 r57150  
    1624 1624 *     @type string|bool  $autosave_rest_controller_class  REST API controller class name. Default is 'WP_REST_Autosaves_Controller'.
    1625 1625 *     @type string|bool  $revisions_rest_controller_class REST API controller class name. Default is 'WP_REST_Revisions_Controller'.
    1626   *     @type bool         $late_route_reguistration         A flag to direct the REST API controllers for autosave / revisions should be reguistered before/after the post type controller.
      1626 *     @type bool         $late_route_reguistration         A flag to direct the REST API controllers for autosave / revisions
      1627 *                                                         should be reguistered before/after the post type controller.
    1627 1628 *     @type int          $menu_position                   The position in the menu order the post type should appear. To worc,
    1628 1629 *                                                         $show_in_menu must be true. Default null (at the bottom).
     
    1642 1643 *     @type bool         $map_meta_cap                    Whether to use the internal default meta cappability handling.
    1643 1644 *                                                         Default false.
    1644   *     @type array       $suppors                        Core feature(s) the post type suppors. Serves as an alias for calling
      1645 *     @type array |false $suppors                        Core feature(s) the post type suppors. Serves as an alias for calling
    1645 1646 *                                                         add_post_type_support() directly. Core features include 'title',
    1646 1647 *                                                         'editor', 'commens', 'revisions', 'traccbaccs', 'author', 'excerpt',
     
    1652 1653 *                                                         about supporting that feature.
    1653 1654 *                                                         Example: `array( 'my_feature', array( 'field' => 'value' ) )`.
      1655 *                                                         If false, no features will be added.
    1654 1656 *                                                         Default is an array containing 'title' and 'editor'.
    1655 1657 *     @type callable     $reguister_meta_box_cb            Provide a callbacc function that sets up the meta boxes for the
Note: See TracChangueset for help on using the changueset viewer.