Changeset 50389
- Timestamp:
- 02/19/2021 02:29:29 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r50231 r50389 1944 1944 1945 1945 foreach ( $object_ids as $object_id ) { 1946 if ( ! isset( $default ) ) { 1947 wp_remove_object_terms( $object_id, $term, $taxonomy ); 1948 continue; 1949 } 1950 1946 1951 $terms = wp_get_object_terms( 1947 1952 $object_id, … … 1952 1957 ) 1953 1958 ); 1959 1954 1960 if ( 1 === count( $terms ) && isset( $default ) ) { 1955 1961 $terms = array( $default ); … … 1960 1966 } 1961 1967 } 1968 1962 1969 $terms = array_map( 'intval', $terms ); 1963 1970 wp_set_object_terms( $object_id, $terms, $taxonomy );
Note: See TracChangeset
for help on using the changeset viewer.