Fix display of theme name in Customizer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user