WordPress.org

Make WordPress Core

Ticket #30127: 30127.diff

File 30127.diff, 665 bytes (added by cmmarslender, 6 years ago)
  • src/wp-includes/taxonomy.php

     
    24072407                $force_default = $args['force_default'];
    24082408        }
    24092409
     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
    24102420        // Update children to point to new parent
    24112421        if ( is_taxonomy_hierarchical($taxonomy) ) {
    24122422                $term_obj = get_term($term, $taxonomy);