Make WordPress Core


Ignore:
Timestamp:
05/06/2009 05:03:59 AM (15 years ago)
Author:
ryan
Message:

Return ref. Props nbachiyski. fixes #9109

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r11204 r11216  
    613613
    614614    foreach ( (array) $taxonomies as $taxonomy ) {
    615         if ( ! is_taxonomy($taxonomy) )
    616             return new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));
     615        if ( ! is_taxonomy($taxonomy) ) {
     616            $error = & new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));
     617            return $error;
     618        }
    617619    }
    618620
Note: See TracChangeset for help on using the changeset viewer.