Fix display of theme name in Customizer

This commit is contained in:
QWp6t
2016-07-16 02:43:24 -07:00
parent f34af480db
commit 34253864fa

View File

@@ -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