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
This commit is contained in:
parent
b981f48184
commit
71b277da38
|
@ -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 {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue