Make WordPress Core

Ticket #52836: 52836.diff

File 52836.diff, 3.3 KB (added by audrasjb, 4 years ago)
  • src/wp-includes/post.php

    diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
    index ced0275db4..f410a29b5b 100644
    a b function get_post_types( $args = array(), $output = 'names', $operator = 'and' ) 
    14221422 *                                               ?{query_var_string}={post_slug} will be valid.
    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
    1426  *                                                 to Trash when the user is deleted.
    1427  *                                               - If false, posts of this type belonging to the user will *not*
    1428  *                                                 be trashed or deleted.
    1429  *                                               - If not set (the default), posts are trashed if post type supports
    1430  *                                                 the 'author' feature. Otherwise posts are not trashed or deleted.
     1425 *                                               If true, posts of this type belonging to the user will be moved
     1426 *                                               to Trash when the user is deleted.
     1427 *                                               If false, posts of this type belonging to the user will *not*
     1428 *                                               be trashed or deleted.
     1429 *                                               If not set (the default), posts are trashed if post type supports
     1430 *                                               the 'author' feature. Otherwise posts are not trashed or deleted.
    14311431 *                                               Default null.
    14321432 *     @type array        $template              Array of blocks to use as the default initial state for an editor
    14331433 *                                               session. Each item should be an array containing block name and
    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,
    1437  *                                                 move existing blocks and delete blocks.
    1438  *                                               - If set to 'insert', the user is able to move existing blocks
    1439  *                                                 but is unable to insert new blocks and delete blocks.
     1436 *                                               If set to 'all', the user is unable to insert new blocks,
     1437 *                                               move existing blocks and delete blocks.
     1438 *                                               If set to 'insert', the user is able to move existing blocks
     1439 *                                               but is unable to insert new blocks and delete blocks.
    14401440 *                                               Default false.
    14411441 *     @type bool         $_builtin              FOR INTERNAL USE ONLY! True if this post type is a native or
    14421442 *                                               "built-in" post_type. Default false.