diff --git a/src/wp-includes/class-wp-query.php b/src/wp-includes/class-wp-query.php index c2c38a0695..540201552c 100644 --- a/src/wp-includes/class-wp-query.php +++ b/src/wp-includes/class-wp-query.php @@ -3978,8 +3978,8 @@ class WP_Query { * * @since 3.1.0 * - * @param int|string|array $page Optional. Page ID, title, slug, path, or array of such - * to check against. Default empty. + * @param int|string|int[]|string[] $page Optional. Page ID, title, slug, path, or array of such + * to check against. Default empty. * @return bool Whether the query is for an existing single page. */ public function is_page( $page = '' ) { @@ -4085,8 +4085,8 @@ class WP_Query { * * @since 3.1.0 * - * @param int|string|array $post Optional. Post ID, title, slug, path, or array of such - * to check against. Default empty. + * @param int|string|int[]|string[] $post Optional. Post ID, title, slug, path, or array of such + * to check against. Default empty. * @return bool Whether the query is for an existing single post. */ public function is_single( $post = '' ) { @@ -4135,8 +4135,8 @@ class WP_Query { * * @since 3.1.0 * - * @param string|array $post_types Optional. Post type or array of post types - * to check against. Default empty. + * @param string|string[] $post_types Optional. Post type or array of post types + * to check against. Default empty. * @return bool Whether the query is for an existing single post * or any of the given post types. */ diff --git a/src/wp-includes/query.php b/src/wp-includes/query.php index 705bbb22c6..69055b3930 100644 --- a/src/wp-includes/query.php +++ b/src/wp-includes/query.php @@ -569,8 +569,8 @@ function is_month() { * * @global WP_Query $wp_query WordPress Query object. * - * @param int|string|array $page Optional. Page ID, title, slug, or array of such - * to check against. Default empty. + * @param int|string|int[]|string[] $page Optional. Page ID, title, slug, or array of such + * to check against. Default empty. * @return bool Whether the query is for an existing single page. */ function is_page( $page = '' ) { @@ -715,8 +715,8 @@ function is_search() { * * @global WP_Query $wp_query WordPress Query object. * - * @param int|string|array $post Optional. Post ID, title, slug, or array of such - * to check against. Default empty. + * @param int|string|int[]|string[] $post Optional. Post ID, title, slug, or array of such + * to check against. Default empty. * @return bool Whether the query is for an existing single post. */ function is_single( $post = '' ) { @@ -748,8 +748,8 @@ function is_single( $post = '' ) { * * @global WP_Query $wp_query WordPress Query object. * - * @param string|array $post_types Optional. Post type or array of post types - * to check against. Default empty. + * @param string|string[] $post_types Optional. Post type or array of post types + * to check against. Default empty. * @return bool Whether the query is for an existing single post * or any of the given post types. */