Make WordPress Core

Changeset 6148


Ignore:
Timestamp:
09/21/2007 03:51:00 PM (17 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

    r6125 r6148  
    292292    if ( !empty($tag_id) ) {
    293293        $my_tag = &get_term($tag_id, 'post_tag', OBJECT, 'display');
     294        if ( is_wp_error( $my_tag ) )
     295            return false;
    294296        $my_tag_name = apply_filters('single_tag_title', $my_tag->name);
    295297        if ( !empty($my_tag_name) ) {
Note: See TracChangeset for help on using the changeset viewer.