Make WordPress Core

Changeset 25268


Ignore:
Timestamp:
09/05/2013 11:20:20 PM (11 years ago)
Author:
wonderboymusic
Message:

Fix spacing in docs for get_pages().

Props DrewAPicture.
See #25186.

File:
1 edited

Legend:

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

    r25266 r25268  
    36163616
    36173617/**
    3618  * Retrieve a list of pages.
     3618 * Retrieve a list of pages
    36193619 *
    36203620 * @global wpdb $wpdb WordPress database abstraction object
     
    36233623 *
    36243624 * @param mixed $args (optional) Array or string of arguments {
    3625  *     @type int      'child_of'     Page ID to return child and grandchild pages of (default 0).
    3626  *     @type string   'sort_order'   How to sort retrieved pages (default 'ASC', accepts 'ASC', 'DESC').
    3627  *     @type string   'sort_column'  What column to sort pages by (default 'post_title', accepts post fields).
    3628  *     @type bool     'hierarchical' Whether to return pages hierarchically (default 1|true).
    3629  *     @type array    'exclude'      Array of page IDs to exclude (default array).
    3630  *     @type array    'include'      Array of page IDs to include (default array).
    3631  *     @type string   'meta_key'     Only include pages with this meta key (default empty).
    3632  *     @type string   'meta_value'   Only include pages with this meta value (default empty).
    3633  *     @type string   'authors'      A comma-separated list of author IDs (default empty).
    3634  *     @type int      'parent'       Page ID to return direct children of. 'hierarchical' must be 0|false (default -1).
    3635  *     @type int      'exclude_tree' Remove all children of given ID from returned pages (default empty).
    3636  *     @type int      'number'       The number of pages to return (default empty).
    3637  *     @type int      'offset'       The number of pages to skip before returning (default 0).
    3638  *     @type string   'post_type'    The post type to return (default 'page').
    3639  *     @type string   'post_status'  A comma-separated list of post status types to include (default 'publish').
     3625 *     @type int    'child_of'     Page ID to return child and grandchild pages of (default 0).
     3626 *     @type string 'sort_order'   How to sort retrieved pages (default 'ASC', accepts 'ASC', 'DESC').
     3627 *     @type string 'sort_column'  What column to sort pages by (default 'post_title', accepts post fields).
     3628 *     @type bool   'hierarchical' Whether to return pages hierarchically (default 1|true).
     3629 *     @type array  'exclude'      Array of page IDs to exclude (default array).
     3630 *     @type array  'include'      Array of page IDs to include (default array).
     3631 *     @type string 'meta_key'     Only include pages with this meta key (default empty).
     3632 *     @type string 'meta_value'   Only include pages with this meta value (default empty).
     3633 *     @type string 'authors'      A comma-separated list of author IDs (default empty).
     3634 *     @type int    'parent'       Page ID to return direct children of. 'hierarchical' must be 0|false (default -1).
     3635 *     @type int    'exclude_tree' Remove all children of given ID from returned pages (default empty).
     3636 *     @type int    'number'       The number of pages to return (default empty).
     3637 *     @type int    'offset'       The number of pages to skip before returning (default 0).
     3638 *     @type string 'post_type'    The post type to return (default 'page').
     3639 *     @type string 'post_status'  A comma-separated list of post status types to include (default 'publish').
    36403640 * }
    3641  * @return array List of pages matching defaults or $args
    3642  */
    3643 function get_pages($args = '') {
     3641 * @return array List of pages matching defaults or $args.
     3642 */
     3643function get_pages( $args = '' ) {
    36443644    global $wpdb;
    36453645
Note: See TracChangeset for help on using the changeset viewer.