Docs: Correct and improve various inline documentation.

See #42505


git-svn-id: https://develop.svn.wordpress.org/trunk@43582 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2018-08-27 14:27:22 +00:00
parent 28dcba340c
commit 5af7160563
10 changed files with 60 additions and 55 deletions
+3 -3
View File
@@ -1686,14 +1686,14 @@ class WP_Query {
}
/**
* Retrieve the posts based on query variables.
* Retrieves an array of posts based on query variables.
*
* There are a few filters and actions that can be used to modify the post
* database query.
*
* @since 1.5.0
*
* @return array List of posts.
* @return WP_Post[]|int[] Array of post objects or post IDs.
*/
public function get_posts() {
global $wpdb;
@@ -3357,7 +3357,7 @@ class WP_Query {
* @since 1.5.0
*
* @param string|array $query URL query string or array of query arguments.
* @return array List of posts.
* @return WP_Post[]|int[] Array of post objects or post IDs.
*/
public function query( $query ) {
$this->init();