mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user