Make WordPress Core

Changeset 14480


Ignore:
Timestamp:
05/06/2010 06:16:39 PM (15 years ago)
Author:
nacin
Message:

Small fix to r14479. see #13109.

File:
1 edited

Legend:

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

    r14479 r14480  
    118118    $taxonomies = array();
    119119    foreach ( (array) $wp_taxonomies as $tax_name => $tax_obj ) {
    120         if ( array_intersect($object, (array) $tax_obj->object_type) )
    121             $taxonomies[$tax_name] = ('names' == $output) ? $tax_name : $tax_obj;
     120        if ( array_intersect($object, (array) $tax_obj->object_type) ) {
     121            if ( 'names' == $output )
     122                $taxonomies[] = $tax_name;
     123            else
     124                $taxonomies[ $tax_name ] = $tax_obj;
     125        }
    122126    }
    123127
Note: See TracChangeset for help on using the changeset viewer.