From 5fd3048d0aeece3bad4a74d68691f62f751aa707 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 1 May 2012 18:02:40 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-wp-theme.php b/wp-includes/class-wp-theme.php index 6daf5982e9..d37551cf8a 100644 --- a/wp-includes/class-wp-theme.php +++ b/wp-includes/class-wp-theme.php @@ -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;