Skip to content

Commit

Permalink
Docs: Improve globals documentation in unregister_taxonomy() and `w…
Browse files Browse the repository at this point in the history
…p_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
  • Loading branch information
audrasjb committed Nov 10, 2022
1 parent 302ba4f commit e180b74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wp-includes/taxonomy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit e180b74

Please sign in to comment.