mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
Add checks for WP_Error. Props filosofo. see #4809
git-svn-id: https://develop.svn.wordpress.org/trunk@6125 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -12,6 +12,8 @@ function bloginfo_rss($show = '') {
|
||||
|
||||
function get_wp_title_rss($sep = '»') {
|
||||
$title = wp_title($sep, false);
|
||||
if ( is_wp_error( $title ) )
|
||||
return $title->get_error_message();
|
||||
$title = apply_filters('get_wp_title_rss', $title);
|
||||
return $title;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user