Skip to content

Commit

Permalink
Fix display of theme name in Customizer
Browse files Browse the repository at this point in the history
  • Loading branch information
QWp6t committed Jul 16, 2016
1 parent f34af48 commit 3425386
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
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
Expand Down

0 comments on commit 3425386

Please sign in to comment.