Docs: Only document get_posts() argument defaults that differ from, or aren't present in the defaults offered by WP_Query::parse_query().

Props johnbillion.
Fixes #34156.

Built from https://develop.svn.wordpress.org/trunk@34886


git-svn-id: http://core.svn.wordpress.org/trunk@34851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-10-06 23:19:24 +00:00
parent fa4fed0f80
commit 51a5e818da
2 changed files with 3 additions and 8 deletions

View File

@ -1573,21 +1573,16 @@ function is_post_type_viewable( $post_type_object ) {
* @see WP_Query::parse_query() * @see WP_Query::parse_query()
* *
* @param array $args { * @param array $args {
* Optional. Arguments to retrieve posts. {@see WP_Query::parse_query()} for more * Optional. Arguments to retrieve posts. See WP_Query::parse_query() for all
* available arguments. * available arguments.
* *
* @type int $numberposts Total number of posts to retrieve. Is an alias of $posts_per_page * @type int $numberposts Total number of posts to retrieve. Is an alias of $posts_per_page
* in WP_Query. Accepts 1+ and -1 for all. Default 5. * in WP_Query. Accepts -1 for all. Default 5.
* @type int $offset The number of posts to offset before retrieval. Default 0.
* @type int|string $category Category ID or comma-separated list of IDs (this or any children). * @type int|string $category Category ID or comma-separated list of IDs (this or any children).
* Is an alias of $cat in WP_Query. Default 0. * Is an alias of $cat in WP_Query. Default 0.
* @type string $orderby Which field to order posts by. Accepts post fields. Default 'date'.
* @type array $include An array of post IDs to retrieve, sticky posts will be included. * @type array $include An array of post IDs to retrieve, sticky posts will be included.
* Is an alias of $post__in in WP_Query. Default empty array. * Is an alias of $post__in in WP_Query. Default empty array.
* @type array $exclude An array of post IDs not to retrieve. Default empty array. * @type array $exclude An array of post IDs not to retrieve. Default empty array.
* @type string $meta_key Custom field key. Default empty.
* @type mixed $meta_value Custom field value. Default empty string.
* @type string $post_type Post type. Default 'post'.
* @type bool $suppress_filters Whether to suppress filters. Default true. * @type bool $suppress_filters Whether to suppress filters. Default true.
* } * }
* @return array List of posts. * @return array List of posts.

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-alpha-34885'; $wp_version = '4.4-alpha-34886';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.