Don't try to translate tags in WP_Theme::translate_header() if we are not in the admin and get_theme_feature_list() isn't defined. see #20103.

git-svn-id: https://develop.svn.wordpress.org/trunk@20668 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-05-01 18:02:40 +00:00
parent e9ee18fa5a
commit 5fd3048d0a
1 changed files with 1 additions and 1 deletions

View File

@ -690,7 +690,7 @@ final class WP_Theme implements ArrayAccess {
$this->name_translated = translate( $value, $this->get('TextDomain' ) );
return $this->name_translated;
case 'Tags' :
if ( empty( $value ) )
if ( empty( $value ) || ! function_exists( 'get_theme_feature_list' ) )
return $value;
static $tags_list;