Make WordPress Core

Ticket #5226: taxonomy-error-check-r6270.patch

File taxonomy-error-check-r6270.patch, 488 bytes (added by tellyworth, 18 years ago)
  • wordpress/wp-includes/taxonomy.php

     
    11191119        foreach ($terms as $term) {
    11201120                if ( !$id = is_term($term, $taxonomy) )
    11211121                        $id = wp_insert_term($term, $taxonomy);
     1122                if ( is_wp_error($id) )
     1123                        return $id;
    11221124                $term_ids[] = $id['term_id'];
    11231125                $id = $id['term_taxonomy_id'];
    11241126                $tt_ids[] = $id;