Changeset 54810
- Timestamp:
- 11/11/2022 12:37:10 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r54794 r54810 565 565 */ 566 566 function unregister_taxonomy( $taxonomy ) { 567 global $wp_taxonomies; 568 567 569 if ( ! taxonomy_exists( $taxonomy ) ) { 568 570 return new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy.' ) ); … … 575 577 return new WP_Error( 'invalid_taxonomy', __( 'Unregistering a built-in taxonomy is not allowed.' ) ); 576 578 } 577 578 global $wp_taxonomies;579 579 580 580 $taxonomy_object->remove_rewrite_rules();
Note: See TracChangeset
for help on using the changeset viewer.