From 3430acef10a39b07800eb0845ed69289b572c45a Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 20 Nov 2009 17:32:56 +0000 Subject: [PATCH] Use correct var name git-svn-id: https://develop.svn.wordpress.org/trunk@12243 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 72c82b8ed4..96ada4d2fe 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1680,13 +1680,13 @@ function wp_update_term( $term_id, $taxonomy, $args = array() ) { else return new WP_Error('duplicate_term_slug', sprintf(__('The slug “%s” is already in use by another term'), $slug)); } - do_action( 'edit_terms', $alias->term_id ); + do_action( 'edit_terms', $term_id ); $wpdb->update($wpdb->terms, compact( 'name', 'slug', 'term_group' ), compact( 'term_id' ) ); if ( empty($slug) ) { $slug = sanitize_title($name, $term_id); $wpdb->update( $wpdb->terms, compact( 'slug' ), compact( 'term_id' ) ); } - do_action( 'edited_terms', $alias->term_id ); + do_action( 'edited_terms', $term_id ); $tt_id = $wpdb->get_var( $wpdb->prepare( "SELECT tt.term_taxonomy_id FROM $wpdb->term_taxonomy AS tt INNER JOIN $wpdb->terms AS t ON tt.term_id = t.term_id WHERE tt.taxonomy = %s AND t.term_id = %d", $taxonomy, $term_id) ); do_action( 'edit_term_taxonomy', $tt_id );