Make WordPress Core


Ignore:
Timestamp:
02/08/2021 10:50:36 PM (4 years ago)
Author:
peterwilsoncc
Message:

Posts/Post Types: Improve documentation of get_posts().

Add references to WP_Query to the documentation of get_posts(). As the developer documentation for WP_Query includes an expanded explanation a full link to developer.wordpress.org is included rather than a standard @see.

Props dam6pl, peterwilsoncc.
See #51852, #51800.

File:
1 edited

Legend:

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

    r50130 r50257  
    20842084 * Retrieves an array of the latest posts, or posts matching the given criteria.
    20852085 *
     2086 * For more information on the accepted arguments, see the
     2087 * {@link https://developer.wordpress.org/reference/classes/wp_query/
     2088 * WP_Query} documentation in the Developer Handbook.
     2089 *
     2090 * The `$ignore_sticky_posts` and `$no_found_rows` arguments are ignored by
     2091 * this function and both are set to `true`.
     2092 *
    20862093 * The defaults are as follows:
    20872094 *
    20882095 * @since 1.2.0
    20892096 *
     2097 * @see WP_Query
    20902098 * @see WP_Query::parse_query()
    20912099 *
Note: See TracChangeset for help on using the changeset viewer.