Changeset 53669
- Timestamp:
- 07/06/2022 05:09:22 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r53627 r53669 580 580 $taxonomy_object->remove_rewrite_rules(); 581 581 $taxonomy_object->remove_hooks(); 582 583 // Remove custom taxonomy default term option.584 if ( ! empty( $taxonomy_object->default_term ) ) {585 delete_option( 'default_term_' . $taxonomy_object->name );586 }587 582 588 583 // Remove the taxonomy. -
trunk/tests/phpunit/tests/taxonomy.php
r53371 r53669 1045 1045 $term = wp_get_post_terms( $post_id, $tax ); 1046 1046 $this->assertSame( array(), $term ); 1047 1048 unregister_taxonomy( $tax );1049 $this->assertSame( get_option( 'default_term_' . $tax ), false );1050 1047 } 1051 1048
Note: See TracChangeset
for help on using the changeset viewer.