Ticket #30127: 30127.diff
| File 30127.diff, 665 bytes (added by , 11 years ago) |
|---|
-
src/wp-includes/taxonomy.php
2407 2407 $force_default = $args['force_default']; 2408 2408 } 2409 2409 2410 /** 2411 * Fires when deleting a term, before any modifications are made to posts or terms. 2412 * 2413 * @since 4.1.0 2414 * 2415 * @param int $term Term ID 2416 * @param string $taxonomy Taxonomy Name 2417 */ 2418 do_action( 'before_delete_term', $term, $taxonomy ); 2419 2410 2420 // Update children to point to new parent 2411 2421 if ( is_taxonomy_hierarchical($taxonomy) ) { 2412 2422 $term_obj = get_term($term, $taxonomy);