Ticket #23506: get-terms-0-based-taxonomies.diff
File get-terms-0-based-taxonomies.diff, 543 bytes (added by , 12 years ago) |
---|
-
wp-includes/taxonomy.php
1190 1190 if ( ! is_array( $taxonomies ) ) 1191 1191 $taxonomies = array( $taxonomies ); 1192 1192 1193 // so that we can safely assume the array is 0-based 1194 $taxonomies = array_values( $taxonomies ); 1195 1193 1196 foreach ( $taxonomies as $taxonomy ) { 1194 1197 if ( ! taxonomy_exists($taxonomy) ) { 1195 1198 $error = new WP_Error('invalid_taxonomy', __('Invalid taxonomy'));