diff --git a/wp-content/themes/twentyeleven/inc/theme-options.php b/wp-content/themes/twentyeleven/inc/theme-options.php index f1d6c4b3d..0f650a349 100644 --- a/wp-content/themes/twentyeleven/inc/theme-options.php +++ b/wp-content/themes/twentyeleven/inc/theme-options.php @@ -314,7 +314,7 @@ function twentyeleven_theme_options_render_page() { ?>
-

+

diff --git a/wp-includes/class-wp-theme.php b/wp-includes/class-wp-theme.php index d82b10530..a58a8acc5 100644 --- a/wp-includes/class-wp-theme.php +++ b/wp-includes/class-wp-theme.php @@ -238,6 +238,15 @@ final class WP_Theme implements ArrayAccess { } } + /** + * When converting the object to a string, the theme name is returned. + * + * @return string Theme name, ready for display (translated) + */ + function __toString() { + return (string) $this->display('Name'); + } + /** * __isset() magic method for properties formerly returned by current_theme_info() */