Skip to content

Commit c3df614

Browse files
committed
Improve comemnt
1 parent 7fd7c42 commit c3df614

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/wp-includes/taxonomy.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,10 +2000,7 @@ function wp_delete_object_term_relationships( $object_id, $taxonomies ) {
20002000
foreach ( (array) $taxonomies as $taxonomy ) {
20012001
$term_ids = wp_get_object_terms( $object_id, $taxonomy, array( 'fields' => 'ids' ) );
20022002
if ( ! is_array( $term_ids ) ) {
2003-
/*
2004-
* Skip this taxonomy if it doesn't return an array. It could return a WP_Error, or it could return a string,
2005-
* or with the 'wp_get_object_terms' filter it could return anything.
2006-
*/
2003+
// Skip return value in the case of an error or a 'wp_get_object_terms' filter returning an invalid value.
20072004
continue;
20082005
}
20092006
$term_ids = array_map( 'intval', $term_ids );

0 commit comments

Comments
 (0)