Make WordPress Core


Ignore:
Timestamp:
10/16/2016 01:09:12 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Docs: In get_pages() and wp_list_pages(), note that post_status argument can also be an array.

Adjust the alignment of default argument values for better readability.

Props birgire, desrosj.
Fixes #38136.

File:
1 edited

Legend:

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

    r38634 r38798  
    44004400 *                                      Default 0.
    44014401 *     @type string       $post_type    The post type to query. Default 'page'.
    4402  *     @type string       $post_status  A comma-separated list of post status types to include.
     4402 *     @type string|array $post_status  A comma-separated list or array of post statuses to include.
    44034403 *                                      Default 'publish'.
    44044404 * }
     
    44094409
    44104410    $defaults = array(
    4411         'child_of' => 0, 'sort_order' => 'ASC',
    4412         'sort_column' => 'post_title', 'hierarchical' => 1,
    4413         'exclude' => array(), 'include' => array(),
    4414         'meta_key' => '', 'meta_value' => '',
    4415         'authors' => '', 'parent' => -1, 'exclude_tree' => array(),
    4416         'number' => '', 'offset' => 0,
    4417         'post_type' => 'page', 'post_status' => 'publish',
     4411        'child_of'     => 0,
     4412        'sort_order'   => 'ASC',
     4413        'sort_column'  => 'post_title',
     4414        'hierarchical' => 1,
     4415        'exclude'      => array(),
     4416        'include'      => array(),
     4417        'meta_key'     => '',
     4418        'meta_value'   => '',
     4419        'authors'      => '',
     4420        'parent'       => -1,
     4421        'exclude_tree' => array(),
     4422        'number'       => '',
     4423        'offset'       => 0,
     4424        'post_type'    => 'page',
     4425        'post_status'  => 'publish',
    44184426    );
    44194427
Note: See TracChangeset for help on using the changeset viewer.