mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 12:35:03 +00:00
Remove debug. see #4189
git-svn-id: http://svn.automattic.com/wordpress/trunk@5557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c816b51b8c
commit
3e59a81327
@ -113,7 +113,6 @@ function wp_delete_object_term_relationships( $object_id, $taxonomies ) {
|
|||||||
|
|
||||||
$terms = get_object_terms($object_id, $taxonomies, 'fields=tt_ids');
|
$terms = get_object_terms($object_id, $taxonomies, 'fields=tt_ids');
|
||||||
$in_terms = "'" . implode("', '", $terms) . "'";
|
$in_terms = "'" . implode("', '", $terms) . "'";
|
||||||
error_log("Terms: " . var_export($terms, true), 0);
|
|
||||||
$wpdb->query("DELETE FROM $wpdb->term_relationships WHERE object_id = '$object_id' AND term_taxonomy_id IN ($in_terms)");
|
$wpdb->query("DELETE FROM $wpdb->term_relationships WHERE object_id = '$object_id' AND term_taxonomy_id IN ($in_terms)");
|
||||||
|
|
||||||
// Assume all taxonomies have the same object type
|
// Assume all taxonomies have the same object type
|
||||||
|
Loading…
x
Reference in New Issue
Block a user