From e180b742cef7b5624d9f99a7e049304c51c494b7 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Thu, 10 Nov 2022 17:14:43 +0000 Subject: [PATCH] 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 --- src/wp-includes/taxonomy.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index 1dfcf4d9c5..be19a14148 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -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.