Ticket #17955: 17955.diff
| File 17955.diff, 746 bytes (added by mfields, 23 months ago) |
|---|
-
wp-includes/taxonomy.php
1150 1150 global $wpdb; 1151 1151 $empty_array = array(); 1152 1152 1153 $single_taxonomy = false; 1154 if ( !is_array($taxonomies) ) { 1155 $single_taxonomy = true; 1156 $taxonomies = array($taxonomies); 1153 $single_taxonomy = true; 1154 if ( is_array( $taxonomies ) && 1 < count( $taxonomies ) ) { 1155 $single_taxonomy = false; 1157 1156 } 1158 1157 1158 if ( is_string( $taxonomies ) ) { 1159 $taxonomies = array( $taxonomies ); 1160 } 1161 1159 1162 foreach ( $taxonomies as $taxonomy ) { 1160 1163 if ( ! taxonomy_exists($taxonomy) ) { 1161 1164 $error = & new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));
