mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 19:24:34 +00:00
Docs: Improve documentation of known return types, plus other docs fixes.
See #48303 git-svn-id: https://develop.svn.wordpress.org/trunk@46660 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -91,7 +91,7 @@ function set_query_var( $var, $value ) {
|
||||
* @global WP_Query $wp_query WordPress Query object.
|
||||
*
|
||||
* @param array|string $query Array or string of WP_Query arguments.
|
||||
* @return array List of post objects.
|
||||
* @return WP_Post[]|int[] Array of post objects or post IDs.
|
||||
*/
|
||||
function query_posts( $query ) {
|
||||
$GLOBALS['wp_query'] = new WP_Query();
|
||||
|
||||
Reference in New Issue
Block a user