From 51a5e818dac8842ae9e2736454cdd13c6c12ab8f Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 6 Oct 2015 23:19:24 +0000 Subject: [PATCH] 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 --- wp-includes/post-functions.php | 9 ++------- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/wp-includes/post-functions.php b/wp-includes/post-functions.php index 4d012f6de0..8233b4c55d 100644 --- a/wp-includes/post-functions.php +++ b/wp-includes/post-functions.php @@ -1573,21 +1573,16 @@ function is_post_type_viewable( $post_type_object ) { * @see WP_Query::parse_query() * * @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. * * @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. - * @type int $offset The number of posts to offset before retrieval. Default 0. + * in WP_Query. Accepts -1 for all. Default 5. * @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. - * @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. * 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 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. * } * @return array List of posts. diff --git a/wp-includes/version.php b/wp-includes/version.php index 7e106701d6..66fb722bdc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.