From 6aecbb7f0a633e48766ecde16cb600448e8eef8c Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Wed, 10 Aug 2022 13:52:42 +0000 Subject: [PATCH] Docs: Clarify that `register_taxonomy()` only accepts lowercase values for the `$taxonomy` parameter. This brings consistency with docblock used in `register_post_type()`. Props audrasjb, bengreeley, dipakparmar443. Fixes #56352 See #55646. git-svn-id: https://develop.svn.wordpress.org/trunk@53873 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/taxonomy.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index c4a0ead64c..687ac3bb8c 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -390,7 +390,8 @@ function is_taxonomy_hierarchical( $taxonomy ) { * * @global WP_Taxonomy[] $wp_taxonomies Registered taxonomies. * - * @param string $taxonomy Taxonomy key, must not exceed 32 characters. + * @param string $taxonomy Taxonomy key, must not exceed 32 characters and may only contain lowercase alphanumeric + * characters, dashes, and underscores. See sanitize_key(). * @param array|string $object_type Object type or array of object types with which the taxonomy should be associated. * @param array|string $args { * Optional. Array or query string of arguments for registering a taxonomy.