Make WordPress Core

Ticket #25186: 25186.diff

File 25186.diff, 2.3 KB (added by DrewAPicture, 12 years ago)
  • wp-includes/post.php

     
    36103610/**
    36113611 * Retrieve a list of pages.
    36123612 *
    3613  * The defaults that can be overridden are the following: 'child_of',
    3614  * 'sort_order', 'sort_column', 'post_title', 'hierarchical', 'exclude',
    3615  * 'include', 'meta_key', 'meta_value','authors', 'number', and 'offset'.
     3613 * @global wpdb $wpdb WordPress database abstraction object
    36163614 *
    36173615 * @since 1.5.0
    3618  * @uses $wpdb
    36193616 *
    3620  * @param mixed $args Optional. Array or string of options that overrides defaults.
     3617 * @param mixed $args (optional) Array or string of arguments {
     3618 *     @type int      'child_of'     Page ID to return child and grandchild pages of (default 0).
     3619 *     @type string   'sort_order'   How to sort retrieved pages (default 'ASC', accepts 'ASC', 'DESC').
     3620 *     @type string   'sort_column'  What column to sort pages by (default 'post_title', accepts post fields).
     3621 *     @type int|bool 'hierarchical' Whether to return pages hierarchically (default 1|true, accepts 1|true, 0|false).
     3622 *     @type array    'exclude'      Array of page IDs to exclude (default array).
     3623 *     @type array    'include'      Array of page IDs to include (default array).
     3624 *     @type string   'meta_key'     Only include pages with this meta key (default empty).
     3625 *     @type string   'meta_value'   Only include pages with this meta value (default empty).
     3626 *     @type string   'authors'      A comma-separated list of author IDs (default empty).
     3627 *     @type int      'parent'       Page ID to return direct children of. 'hierarchical' must be 0|false (default -1).
     3628 *     @type int      'exclude_tree' Remove all children of given ID from returned pages (default empty).
     3629 *     @type int      'number'       The number of pages to return (default empty).
     3630 *     @type int      'offset'       The number of pages to skip before returning (default 0).
     3631 *     @type string   'post_type'    The post type to return (default 'page').
     3632 *     @type string   'post_status'  A comma-separated list of post status types to include (default 'publish').
     3633 * }
    36213634 * @return array List of pages matching defaults or $args
    36223635 */
    36233636function get_pages($args = '') {