From efd6b3c95869507657d26389fbc266a57e6e3f9b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 25 Oct 2007 07:15:02 +0000 Subject: [PATCH] Pass literal strings not vars to compact. git-svn-id: https://develop.svn.wordpress.org/trunk@6290 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 0e7a360456..0bdde1acb4 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -903,7 +903,7 @@ function wp_delete_term( $term, $taxonomy, $args = array() ) { return $term_obj; $parent = $term_obj->parent; - $wpdb->update( $wpdb->term_taxonomy, compact( $parent ), array( 'parent' => $term_obj->term_id) + compact( $taxonomy ) ); + $wpdb->update( $wpdb->term_taxonomy, compact( 'parent' ), array( 'parent' => $term_obj->term_id) + compact( 'taxonomy' ) ); } $objects = $wpdb->get_col( $wpdb->prepare( "SELECT object_id FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d", $tt_id ) );