Make WordPress Core

Changeset 34886


Ignore:
Timestamp:
10/06/2015 11:18:05 PM (10 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

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

    r34762 r34886  
    15741574 *
    15751575 * @param array $args {
    1576  *     Optional. Arguments to retrieve posts. {@see WP_Query::parse_query()} for more
     1576 *     Optional. Arguments to retrieve posts. See WP_Query::parse_query() for all
    15771577 *     available arguments.
    15781578 *
    15791579 *     @type int        $numberposts      Total number of posts to retrieve. Is an alias of $posts_per_page
    1580  *                                        in WP_Query. Accepts 1+ and -1 for all. Default 5.
    1581  *     @type int        $offset           The number of posts to offset before retrieval. Default 0.
     1580 *                                        in WP_Query. Accepts -1 for all. Default 5.
    15821581 *     @type int|string $category         Category ID or comma-separated list of IDs (this or any children).
    15831582 *                                        Is an alias of $cat in WP_Query. Default 0.
    1584  *     @type string     $orderby          Which field to order posts by. Accepts post fields. Default 'date'.
    15851583 *     @type array      $include          An array of post IDs to retrieve, sticky posts will be included.
    15861584 *                                        Is an alias of $post__in in WP_Query. Default empty array.
    15871585 *     @type array      $exclude          An array of post IDs not to retrieve. Default empty array.
    1588  *     @type string     $meta_key         Custom field key. Default empty.
    1589  *     @type mixed      $meta_value       Custom field value. Default empty string.
    1590  *     @type string     $post_type        Post type. Default 'post'.
    15911586 *     @type bool       $suppress_filters Whether to suppress filters. Default true.
    15921587 * }
Note: See TracChangeset for help on using the changeset viewer.