Make WordPress Core

07/01/2021 09:11:48 PM (3 months ago)

Docs: Descriptive improvements and corrections for various docblocks.

See #53399

1 edited


  • trunk/src/wp-includes/post.php

    r51299 r51300  
    13921392 *                                               the admin interface or by front-end users. While the default
    13931393 *                                               settings of $exclude_from_search, $publicly_queryable, $show_ui,
    1394  *                                               and $show_in_nav_menus are inherited from $public, each does not
     1394 *                                               and $show_in_nav_menus are inherited from public, each does not
    13951395 *                                               rely on this relationship and controls a very specific intention.
    13961396 *                                               Default false.
    14181418 *     @type bool         $show_in_rest          Whether to include the post type in the REST API. Set this to true
    14191419 *                                               for the post type to be available in the block editor.
    1420  *     @type string       $rest_base             To change the base URL of REST API route. Default is $post_type.
    1421  *     @type string       $rest_controller_class REST API controller class name. Default is 'WP_REST_Posts_Controller'.
     1420 *     @type string       $rest_base             To change the base url of REST API route. Default is $post_type.
     1421 *     @type string       $rest_controller_class REST API Controller class name. Default is 'WP_REST_Posts_Controller'.
    14221422 *     @type int          $menu_position         The position in the menu order the post type should appear. To work,
    14231423 *                                               $show_in_menu must be true. Default null (at the bottom).
    1424  *     @type string       $menu_icon             The URL to the icon to be used for this menu. Pass a base64-encoded
     1424 *     @type string       $menu_icon             The url to the icon to be used for this menu. Pass a base64-encoded
    14251425 *                                               SVG using a data URI, which will be colored to match the color scheme
    14261426 *                                               -- this should begin with 'data:image/svg+xml;base64,'. Pass the name
Note: See TracChangeset for help on using the changeset viewer.