WordPress.org

Make WordPress Core

Ticket #5206: taxonomy.diff

File taxonomy.diff, 814 bytes (added by zamoose, 11 years ago)
  • wp-includes/taxonomy.php

     
    11241124
    11251125        $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) );
    11261126
    1127         $wpdb->update( $wpdb->term_taxonomy, compact( 'term_id', 'taxonomy', 'description', 'parent' ), array( 'term_taxnonoy_id' => $tt_id ) );
     1127        $wpdb->update( $wpdb->term_taxonomy, compact( 'term_id', 'taxonomy', 'description', 'parent' ), array( 'term_taxonomy_id' => $tt_id ) );
    11281128
    11291129        do_action("edit_term", $term_id, $tt_id);
    11301130        do_action("edit_$taxonomy", $term_id, $tt_id);