From 36736636c11f670d65f906ba4471caa8c9743151 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 6 Oct 2015 23:18:05 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@34886 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post-functions.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/wp-includes/post-functions.php b/src/wp-includes/post-functions.php index 4d012f6de0..8233b4c55d 100644 --- a/src/wp-includes/post-functions.php +++ b/src/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.