mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 14:53:08 +02:00
Docs: Improve the summary and return description in the DocBlock for unregister_taxonomy()
, introduced in [36243].
See #35227. See #35986. Built from https://develop.svn.wordpress.org/trunk@36961 git-svn-id: http://core.svn.wordpress.org/trunk@36929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7f77d5074c
commit
f83488a058
@ -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.
|
* 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.
|
* @global array $wp_taxonomies List of taxonomies.
|
||||||
*
|
*
|
||||||
* @param string $taxonomy Taxonomy name.
|
* @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 ) {
|
function unregister_taxonomy( $taxonomy ) {
|
||||||
if ( ! taxonomy_exists( $taxonomy ) ) {
|
if ( ! taxonomy_exists( $taxonomy ) ) {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-beta3-36960';
|
$wp_version = '4.5-beta3-36961';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user