Changeset 22417
- Timestamp:
- 11/07/2012 09:03:40 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r22309 r22417 1189 1189 $empty_array = array(); 1190 1190 1191 $single_taxonomy = false; 1192 if ( !is_array($taxonomies) ) { 1193 $single_taxonomy = true; 1194 $taxonomies = array($taxonomies); 1195 } 1191 $single_taxonomy = ! is_array( $taxonomies ) || 1 === count( $taxonomies ); 1192 if ( ! is_array( $taxonomies ) ) 1193 $taxonomies = array( $taxonomies ); 1196 1194 1197 1195 foreach ( $taxonomies as $taxonomy ) {
Note: See TracChangeset
for help on using the changeset viewer.