mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Docs: Provide a more accurate @return type for get_pages() function.
Props malthert, audrasjb, johnbillion, jigar-bhanushali. Fixes #56330. See #55646. git-svn-id: https://develop.svn.wordpress.org/trunk@53837 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -5971,9 +5971,9 @@ function get_page_uri( $page = 0 ) {
|
||||
* @type string|array $post_status A comma-separated list or array of post statuses to include.
|
||||
* Default 'publish'.
|
||||
* }
|
||||
* @return WP_Post[]|int[]|false Array of pages (or hierarchical post type items). Boolean false if the
|
||||
* specified post type is not hierarchical or the specified status is not
|
||||
* supported by the post type.
|
||||
* @return WP_Post[]|false Array of pages (or hierarchical post type items). Boolean false if the
|
||||
* specified post type is not hierarchical or the specified status is not
|
||||
* supported by the post type.
|
||||
*/
|
||||
function get_pages( $args = array() ) {
|
||||
global $wpdb;
|
||||
|
||||
Reference in New Issue
Block a user