Make WordPress Core

Changeset 50538


Ignore:
Timestamp:
03/17/2021 05:31:19 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct formatting for the description of some register_post_type() parameters.

Props audrasjb.
Fixes #52836.

File:
1 edited

Legend:

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

    r50529 r50538  
    14231423 *     @type bool         $can_export            Whether to allow this post type to be exported. Default true.
    14241424 *     @type bool         $delete_with_user      Whether to delete posts of this type when deleting a user.
    1425  *                                               - If true, posts of this type belonging to the user will be moved
     1425 *                                               * If true, posts of this type belonging to the user will be moved
    14261426 *                                                 to Trash when the user is deleted.
    1427  *                                               - If false, posts of this type belonging to the user will *not*
     1427 *                                               * If false, posts of this type belonging to the user will *not*
    14281428 *                                                 be trashed or deleted.
    1429  *                                               - If not set (the default), posts are trashed if post type supports
     1429 *                                               * If not set (the default), posts are trashed if post type supports
    14301430 *                                                 the 'author' feature. Otherwise posts are not trashed or deleted.
    14311431 *                                               Default null.
     
    14341434 *                                               optional attributes. Default empty array.
    14351435 *     @type string|false $template_lock         Whether the block template should be locked if $template is set.
    1436  *                                               - If set to 'all', the user is unable to insert new blocks,
     1436 *                                               * If set to 'all', the user is unable to insert new blocks,
    14371437 *                                                 move existing blocks and delete blocks.
    1438  *                                               - If set to 'insert', the user is able to move existing blocks
     1438 *                                               * If set to 'insert', the user is able to move existing blocks
    14391439 *                                                 but is unable to insert new blocks and delete blocks.
    14401440 *                                               Default false.
Note: See TracChangeset for help on using the changeset viewer.