Use Config object to store config options

This commit is contained in:
QWp6t
2016-12-24 23:14:16 -08:00
parent 5d454ba8ed
commit c0fc19ef61
7 changed files with 134 additions and 28 deletions

View File

@@ -42,7 +42,7 @@ array_map(function ($file) {
* ├── STYLESHEETPATH -> /srv/www/example.com/current/web/app/themes/sage
* └── TEMPLATEPATH -> /srv/www/example.com/current/web/app/themes/sage/templates
*/
if (is_customize_preview()) {
if (App\config('sage.disable_option_hack')) {
return;
}
add_filter('template', function ($stylesheet) {