Fix typo in call to $wpdb->update. Fixes #5206 props zamoose
git-svn-id: https://develop.svn.wordpress.org/trunk@6251 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a5d56b0264
commit
0596a0e504
|
@ -1124,7 +1124,7 @@ function wp_update_term( $term, $taxonomy, $args = array() ) {
|
|||
|
||||
$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) );
|
||||
|
||||
$wpdb->update( $wpdb->term_taxonomy, compact( 'term_id', 'taxonomy', 'description', 'parent' ), array( 'term_taxnonoy_id' => $tt_id ) );
|
||||
$wpdb->update( $wpdb->term_taxonomy, compact( 'term_id', 'taxonomy', 'description', 'parent' ), array( 'term_taxonomy_id' => $tt_id ) );
|
||||
|
||||
do_action("edit_term", $term_id, $tt_id);
|
||||
do_action("edit_$taxonomy", $term_id, $tt_id);
|
||||
|
|
Loading…
Reference in New Issue