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
This commit is contained in:
parent
662a4c1fd8
commit
b557ee2d1b
@ -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 ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user