Make WordPress Core

Changeset 53873


Ignore:
Timestamp:
08/10/2022 01:52:42 PM (2 years ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r53871 r53873  
    391391 * @global WP_Taxonomy[] $wp_taxonomies Registered taxonomies.
    392392 *
    393  * @param string       $taxonomy    Taxonomy key, must not exceed 32 characters.
     393 * @param string       $taxonomy    Taxonomy key, must not exceed 32 characters and may only contain lowercase alphanumeric
     394 *                                  characters, dashes, and underscores. See sanitize_key().
    394395 * @param array|string $object_type Object type or array of object types with which the taxonomy should be associated.
    395396 * @param array|string $args        {
Note: See TracChangeset for help on using the changeset viewer.