WordPress.org

Make WordPress Core

Changeset 12397


Ignore:
Timestamp:
12/14/2009 04:46:05 PM (11 years ago)
Author:
ryan
Message:

Pass taxonomy to created, edited, create, and edit actions. Props Denis-de-Bernardy. fixes #11429

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r12261 r12397  
    14221422    $tt_id = (int) $wpdb->insert_id;
    14231423
    1424     do_action("create_term", $term_id, $tt_id);
     1424    do_action("create_term", $term_id, $tt_id, $taxonomy);
    14251425    do_action("create_$taxonomy", $term_id, $tt_id);
    14261426
     
    14291429    clean_term_cache($term_id, $taxonomy);
    14301430
    1431     do_action("created_term", $term_id, $tt_id);
     1431    do_action("created_term", $term_id, $tt_id, $taxonomy);
    14321432    do_action("created_$taxonomy", $term_id, $tt_id);
    14331433
     
    16941694    do_action( 'edited_term_taxonomy', $tt_id );
    16951695
    1696     do_action("edit_term", $term_id, $tt_id);
     1696    do_action("edit_term", $term_id, $tt_id, $taxonomy);
    16971697    do_action("edit_$taxonomy", $term_id, $tt_id);
    16981698
     
    17011701    clean_term_cache($term_id, $taxonomy);
    17021702
    1703     do_action("edited_term", $term_id, $tt_id);
     1703    do_action("edited_term", $term_id, $tt_id, $taxonomy);
    17041704    do_action("edited_$taxonomy", $term_id, $tt_id);
    17051705
Note: See TracChangeset for help on using the changeset viewer.