From b8ddcea51022cc99ce9781057ea1a6ab5c9a365a Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Thu, 6 Oct 2016 01:29:22 +0000 Subject: [PATCH] Docs: Improvements to `register_taxonomy()` docblock. * Fix spelling and whitespace. * Remove `$label` argument documentation. This argument hasn't worked since [14614], despite the documentation added in [14619]. Props bobbingwide. Fixes #38007. git-svn-id: https://develop.svn.wordpress.org/trunk@38737 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/taxonomy.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index 4edae370c1..73b769cbc9 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -293,16 +293,14 @@ function is_taxonomy_hierarchical($taxonomy) { * @global WP $wp WP instance. * * @param string $taxonomy Taxonomy key, must not exceed 32 characters. - * @param array|string $object_type Name of the object type for the taxonomy object. + * @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. * - * @type string $label Name of the taxonomy shown in the menu. Usually plural. If not set, - * `$labels['name']` will be used. - * @type array $labels An array of labels for this taxonomy. By default, Tag labels are used for - * non-hierarchical taxonmies, and Category labels are used for hierarchical - * taxonomies. See accepted values in get_taxonomy_labels(). - * Default empty array. + * @type array $labels An array of labels for this taxonomy. By default, Tag labels are + * used for non-hierarchical taxonomies, and Category labels are used + * for hierarchical taxonomies. See accepted values in + * get_taxonomy_labels(). Default empty array. * @type string $description A short descriptive summary of what the taxonomy is for. Default empty. * @type bool $public Whether a taxonomy is intended for use publicly either via * the admin interface or by front-end users. The default settings