WordPress.org

Make WordPress Core

Ticket #6122: add_taxonomy_id_filter.patch

File add_taxonomy_id_filter.patch, 710 bytes (added by chmac, 10 years ago)

Updated patch with the new line nos as at r1206

  • trunk/wp-includes/taxonomy.php

     
    12261226        do_action("create_$taxonomy", $term_id, $tt_id);
    12271227
    12281228        $term_id = apply_filters('term_id_filter', $term_id, $tt_id);
     1229        $tt_id = apply_filters('term_taxonomy_id_filter', $tt_id, $term_id);
    12291230
    12301231        clean_term_cache($term_id, $taxonomy);
    12311232
     
    14821483        do_action("edit_$taxonomy", $term_id, $tt_id);
    14831484
    14841485        $term_id = apply_filters('term_id_filter', $term_id, $tt_id);
     1486        $tt_id = apply_filters('taxonomy_id_filter', $term_id, $tt_id);
    14851487
    14861488        clean_term_cache($term_id, $taxonomy);
    14871489