Pass literal strings not vars to compact.
git-svn-id: https://develop.svn.wordpress.org/trunk@6290 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
973ae6f2d8
commit
efd6b3c958
@ -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 ) );
|
||||
|
Loading…
Reference in New Issue
Block a user