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:
parent
e9ee18fa5a
commit
5fd3048d0a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user