From 34253864fa4cc0bb3020dcc8bacc1c14f74e12f9 Mon Sep 17 00:00:00 2001 From: QWp6t Date: Sat, 16 Jul 2016 02:43:24 -0700 Subject: [PATCH] Fix display of theme name in Customizer --- functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions.php b/functions.php index fba42e1..1504906 100644 --- a/functions.php +++ b/functions.php @@ -31,6 +31,11 @@ add_action('after_switch_theme', function () { update_option('stylesheet', $stylesheet . '/templates'); } }); +add_action('customize_render_section', function ($section) { + if ($section->type === 'themes') { + $section->title = wp_get_theme(basename(__DIR__))->display('Name'); + } +}, 10, 2); /** * Sage includes