Make WordPress Core


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

Add checks for WP_Error. Props filosofo. see #4809

File:
1 edited

Legend:

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

    r6114 r6125  
    1313function get_wp_title_rss($sep = '»') {
    1414    $title = wp_title($sep, false);
     15    if ( is_wp_error( $title ) )
     16        return $title->get_error_message();
    1517    $title = apply_filters('get_wp_title_rss', $title);
    1618    return $title;
Note: See TracChangeset for help on using the changeset viewer.