Make WordPress Core


Ignore:
Timestamp:
09/18/2007 04:32:22 PM (19 years ago)
Author:
ryan
Message:

Add checks for WP_Error. Props filosofo. see #4809

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r6119 r6125  
    196196        if ( !empty($tag) ) {
    197197                $tag = get_term($tag, 'post_tag', OBJECT, 'display');
     198                if ( is_wp_error( $tag ) )
     199                        return $tag;
    198200                if ( ! empty($tag->name) )
    199201                        $title = apply_filters('single_tag_title', $tag->name);
Note: See TracChangeset for help on using the changeset viewer.