Skip to content
Browse files

Add checks for WP_Error. Props filosofo. see #4809

git-svn-id: http://svn.automattic.com/wordpress/trunk@6148 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 2794b34 commit 81482db30b0863316b14c65966e48a61627682d0 ryan committed Sep 21, 2007
Showing with 2 additions and 0 deletions.
  1. +2 −0 wp-includes/general-template.php
View
2 wp-includes/general-template.php
@@ -291,6 +291,8 @@ function single_tag_title($prefix = '', $display = true ) {
if ( !empty($tag_id) ) {
$my_tag = &get_term($tag_id, 'post_tag', OBJECT, 'display');
+ if ( is_wp_error( $my_tag ) )
+ return false;
$my_tag_name = apply_filters('single_tag_title', $my_tag->name);
if ( !empty($my_tag_name) ) {
if ( $display )

0 comments on commit 81482db

Please sign in to comment.
Something went wrong with that request. Please try again.