WordPress.org

Make WordPress Core

Changeset 30723


Ignore:
Timestamp:
12/03/2014 10:15:08 AM (6 years ago)
Author:
DrewAPicture
Message:

Use the correct hash notation syntax for the get_pages() DocBlock.

See #28298.

File:
1 edited

Legend:

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

    r30671 r30723  
    43904390 * @since 1.5.0
    43914391 *
    4392  * @param mixed $args {
    4393  *     Array or string of arguments. Optional.
    4394  *
    4395  *     @type int    'child_of'     Page ID to return child and grandchild pages of. Default 0, or no restriction.
    4396  *     @type string 'sort_order'   How to sort retrieved pages.
    4397  *                                 Default 'ASC'. Accepts 'ASC', 'DESC'.
    4398  *     @type string 'sort_column'  What columns to sort pages by, comma-separated.
    4399  *                                 Default 'post_title'. Accepts 'post_author', 'post_date', 'post_title', 'post_name',
    4400  *                                 'post_modified', 'post_modified_gmt', 'menu_order', 'post_parent', 'ID', 'rand',
    4401  *                                 'comment_count'. 'post_' can be omitted for any values that start with it.
    4402  *     @type bool   'hierarchical' Whether to return pages hierarchically. Default true.
    4403  *     @type array  'exclude'      Array of page IDs to exclude.
    4404  *     @type array  'include'      Array of page IDs to include. Cannot be used with 'child_of', 'parent', 'exclude',
    4405  *                                 'meta_key', 'meta_value', or 'hierarchical'.
    4406  *     @type string 'meta_key'     Only include pages with this meta key.
    4407  *     @type string 'meta_value'   Only include pages with this meta value.
    4408  *     @type string 'authors'      A comma-separated list of author IDs.
    4409  *     @type int    'parent'       Page ID to return direct children of. 'hierarchical' must be false.
    4410  *                                 Default -1, or no restriction.
    4411  *     @type int    'exclude_tree' Remove all children of the given ID from returned pages.
    4412  *     @type int    'number'       The number of pages to return. Default 0, or all pages.
    4413  *     @type int    'offset'       The number of pages to skip before returning. Requires 'number'.
    4414  *                                 Default 0.
    4415  *     @type string 'post_type'    The post type to query.
    4416  *                                 Default 'page'.
    4417  *     @type string 'post_status'  A comma-separated list of post status types to include.
    4418  *                                 Default 'publish'.
     4392 * @param array|string $args {
     4393 *     Optional. Array or string of arguments to retrieve pages.
     4394 *
     4395 *     @type int    $child_of     Page ID to return child and grandchild pages of. Default 0, or no restriction.
     4396 *     @type string $sort_order   How to sort retrieved pages.
     4397 *                                Default 'ASC'. Accepts 'ASC', 'DESC'.
     4398 *     @type string $sort_column  What columns to sort pages by, comma-separated.
     4399 *                                Default 'post_title'. Accepts 'post_author', 'post_date', 'post_title', 'post_name',
     4400 *                                'post_modified', 'post_modified_gmt', 'menu_order', 'post_parent', 'ID', 'rand',
     4401 *                                'comment_count'. 'post_' can be omitted for any values that start with it.
     4402 *     @type bool   $hierarchical Whether to return pages hierarchically. Default true.
     4403 *     @type array  $exclude      Array of page IDs to exclude.
     4404 *     @type array  $include      Array of page IDs to include. Cannot be used with 'child_of', 'parent', 'exclude',
     4405 *                                'meta_key', 'meta_value', or 'hierarchical'.
     4406 *     @type string $meta_key     Only include pages with this meta key.
     4407 *     @type string $meta_value   Only include pages with this meta value.
     4408 *     @type string $authors      A comma-separated list of author IDs.
     4409 *     @type int    $parent       Page ID to return direct children of. 'hierarchical' must be false.
     4410 *                                Default -1, or no restriction.
     4411 *     @type int    $exclude_tree Remove all children of the given ID from returned pages.
     4412 *     @type int    $number       The number of pages to return. Default 0, or all pages.
     4413 *     @type int    $offset       The number of pages to skip before returning. Requires 'number'.
     4414 *                                Default 0.
     4415 *     @type string $post_type    The post type to query.
     4416 *                                Default 'page'.
     4417 *     @type string $post_status  A comma-separated list of post status types to include.
     4418 *                                Default 'publish'.
    44194419 * }
    44204420 * @return array List of pages matching defaults or $args.
Note: See TracChangeset for help on using the changeset viewer.