Make WordPress Core


Ignore:
Timestamp:
02/16/2010 09:08:26 AM (14 years ago)
Author:
dd32
Message:
2nd pass at Taxonomy Term canonicalisation. Fix get_term_link() to expect null|false
WP_Error failure from get_term() family. See #12245, #8948
File:
1 edited

Legend:

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

    r13087 r13170  
    22912291        }
    22922292    }
     2293
     2294    if ( !is_object($term) )
     2295        $term = new WP_Error('invalid_term', __('Empty Term'));
     2296
    22932297    if ( is_wp_error( $term ) )
    22942298        return $term;
Note: See TracChangeset for help on using the changeset viewer.