From 71b277da38a63be66070a738429ecc1670954d3f Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Mon, 8 Feb 2021 22:52:02 +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. Built from https://develop.svn.wordpress.org/trunk@50257 git-svn-id: http://core.svn.wordpress.org/trunk@49902 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 8 ++++++++ wp-includes/version.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index e1997e24b8..b280bde627 100644 --- a/wp-includes/post.php +++ b/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 { diff --git a/wp-includes/version.php b/wp-includes/version.php index 219136c512..93a0f0ca6c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-beta1-50256'; +$wp_version = '5.7-beta1-50257'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.