Changeset 21939
- Timestamp:
- 09/21/2012 01:27:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r21863 r21939 1818 1818 clean_object_term_cache( $objects, $object_type ); 1819 1819 1820 // Get the object before deletion so we can pass to actions below 1821 $deleted_term = get_term( $term, $taxonomy ); 1822 1820 1823 do_action( 'delete_term_taxonomy', $tt_id ); 1821 1824 $wpdb->delete( $wpdb->term_taxonomy, array( 'term_taxonomy_id' => $tt_id ) ); … … 1828 1831 clean_term_cache($term, $taxonomy); 1829 1832 1830 do_action( 'delete_term', $term, $tt_id, $taxonomy);1831 do_action( "delete_$taxonomy", $term, $tt_id);1833 do_action( 'delete_term', $term, $tt_id, $taxonomy, $deleted_term ); 1834 do_action( "delete_$taxonomy", $term, $tt_id, $deleted_term ); 1832 1835 1833 1836 return true;
Note: See TracChangeset
for help on using the changeset viewer.