Changeset 55921 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 06/14/2023 11:49:36 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r55759 r55921 2738 2738 * @param string|int|array $terms A single term slug, single term ID, or array of either term slugs or IDs. 2739 2739 * Will replace all existing related terms in this taxonomy. Passing an 2740 * empty valuewill remove all related terms.2740 * empty array will remove all related terms. 2741 2741 * @param string $taxonomy The context in which to relate the term to the object. 2742 2742 * @param bool $append Optional. If false will delete difference of terms. Default false. … … 2752 2752 } 2753 2753 2754 if ( ! is_array( $terms ) ) { 2754 if ( empty( $terms ) ) { 2755 $terms = array(); 2756 } elseif ( ! is_array( $terms ) ) { 2755 2757 $terms = array( $terms ); 2756 2758 }
Note: See TracChangeset
for help on using the changeset viewer.