From bb41235d1fb5f5f3edb3f9e68b6cb4966c9865e6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 28 Mar 2023 10:54:46 +0000 Subject: [PATCH] Docs: Use typed array notation for `search_columns` in `WP_Query::parse_query()`. Follow-up to [55248]. Props tmatsuur. Fixes #57996. git-svn-id: https://develop.svn.wordpress.org/trunk@55597 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-query.php b/src/wp-includes/class-wp-query.php index 94512908bf..02baa6d1f1 100644 --- a/src/wp-includes/class-wp-query.php +++ b/src/wp-includes/class-wp-query.php @@ -752,7 +752,7 @@ class WP_Query { * return posts containing 'pillow' but not 'sofa'. The * character used for exclusion can be modified using the * the 'wp_query_search_exclusion_prefix' filter. - * @type array $search_columns Array of column names to be searched. Accepts 'post_title', + * @type string[] $search_columns Array of column names to be searched. Accepts 'post_title', * 'post_excerpt' and 'post_content'. Default empty array. * @type int $second Second of the minute. Default empty. Accepts numbers 0-59. * @type bool $sentence Whether to search by phrase. Default false.