From b557ee2d1b54c60b4de1f0e7770dbe57a3527df3 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 10 Mar 2016 22:01:43 +0000 Subject: [PATCH] Docs: Improve the summary and return description in the DocBlock for `unregister_taxonomy()`, introduced in [36243]. See #35227. See #35986. git-svn-id: https://develop.svn.wordpress.org/trunk@36961 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/taxonomy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index d9930e21e4..8f0b602c75 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -491,7 +491,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) { } /** - * Unregister a taxonomy. + * Unregisters a taxonomy. * * Can not be used to unregister built-in taxonomies. * @@ -501,7 +501,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) { * @global array $wp_taxonomies List of taxonomies. * * @param string $taxonomy Taxonomy name. - * @return bool|WP_Error True on success, WP_Error on failure. + * @return bool|WP_Error True on success, WP_Error on failure or if the taxonomy doesn't exist. */ function unregister_taxonomy( $taxonomy ) { if ( ! taxonomy_exists( $taxonomy ) ) {