From 1177e1212f8cc395192d633140db5ef0ca589a7d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 14 Aug 2019 17:46:20 +0000 Subject: [PATCH] Docs: Correct type for `query_var` argument of `register_taxonomy()`. Props juiiee8487, audrasjb. Fixes #47877. git-svn-id: https://develop.svn.wordpress.org/trunk@45797 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index 55219d4261..c6f2854a10 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -396,7 +396,7 @@ function is_taxonomy_hierarchical( $taxonomy ) { * @type bool $hierarchical Either hierarchical rewrite tag or not. Default false. * @type int $ep_mask Assign an endpoint mask. Default `EP_NONE`. * } - * @type string $query_var Sets the query var key for this taxonomy. Default `$taxonomy` key. If + * @type string|bool $query_var Sets the query var key for this taxonomy. Default `$taxonomy` key. If * false, a taxonomy cannot be loaded at `?{query_var}={term_slug}`. If a * string, the query `?{query_var}={term_slug}` will be valid. * @type callable $update_count_callback Works much like a hook, in that it will be called when the count is