Docs: Improve globals documentation in unregister_taxonomy() and wp_term_is_shared().

Props upadalavipul, mukesh27.
Fixes #57058. 
See #56792.


git-svn-id: https://develop.svn.wordpress.org/trunk@54794 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras
2022-11-10 17:14:43 +00:00
parent 302ba4f45f
commit e180b742ce
+2 -1
View File
@@ -558,7 +558,6 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) {
*
* @since 4.5.0
*
* @global WP $wp Current WordPress environment instance.
* @global WP_Taxonomy[] $wp_taxonomies List of taxonomies.
*
* @param string $taxonomy Taxonomy name.
@@ -4522,6 +4521,8 @@ function wp_get_split_term( $old_term_id, $taxonomy ) {
*
* @since 4.4.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param int $term_id Term ID.
* @return bool Returns false if a term is not shared between multiple taxonomies or
* if splitting shared taxonomy terms is finished.