From 2e23c29603f11f354b032459f1621a700b2d525e Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Mon, 8 Feb 2021 22:50:36 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@50257 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index e1997e24b8..b280bde627 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -2083,10 +2083,18 @@ function is_post_publicly_viewable( $post = null ) { /** * Retrieves an array of the latest posts, or posts matching the given criteria. * + * For more information on the accepted arguments, see the + * {@link https://developer.wordpress.org/reference/classes/wp_query/ + * WP_Query} documentation in the Developer Handbook. + * + * The `$ignore_sticky_posts` and `$no_found_rows` arguments are ignored by + * this function and both are set to `true`. + * * The defaults are as follows: * * @since 1.2.0 * + * @see WP_Query * @see WP_Query::parse_query() * * @param array $args {