Pass literal strings not vars to compact.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a34b0064ad
commit
58d174004e
|
@ -903,7 +903,7 @@ function wp_delete_term( $term, $taxonomy, $args = array() ) {
|
||||||
return $term_obj;
|
return $term_obj;
|
||||||
$parent = $term_obj->parent;
|
$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 ) );
|
$objects = $wpdb->get_col( $wpdb->prepare( "SELECT object_id FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d", $tt_id ) );
|
||||||
|
|
Loading…
Reference in New Issue