From ba63f64a35d8858dff6a3cadf2c9ce1964ecef7c Mon Sep 17 00:00:00 2001 From: Alessandro Fazzi Date: Thu, 22 Feb 2018 17:49:08 +0100 Subject: [PATCH] phug new error_reporting and profiler always false --- tests/render_helper_test.php | 6 ++++-- wordless/helpers/pug/wordless_pug_options.php | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/render_helper_test.php b/tests/render_helper_test.php index 81355d7b..eebf9d2b 100644 --- a/tests/render_helper_test.php +++ b/tests/render_helper_test.php @@ -66,7 +66,8 @@ function test_pug_instance_options_with_wp_debug_false() { 'cache' => Wordless::theme_temp_path(), 'strict' => true, 'debug' => false, - 'enable_profiler' => false + 'enable_profiler' => false, + 'error_reporting' => E_ERROR | E_USER_ERROR ), WordlessPugOptions::get_options() ); @@ -83,7 +84,8 @@ function test_pug_instance_options_with_wp_debug_true() { 'cache' => Wordless::theme_temp_path(), 'strict' => true, 'debug' => true, - 'enable_profiler' => true + 'enable_profiler' => false, + 'error_reporting' => E_ERROR | E_USER_ERROR ), WordlessPugOptions::get_options() ); diff --git a/wordless/helpers/pug/wordless_pug_options.php b/wordless/helpers/pug/wordless_pug_options.php index c3721797..4abe2e95 100644 --- a/wordless/helpers/pug/wordless_pug_options.php +++ b/wordless/helpers/pug/wordless_pug_options.php @@ -10,7 +10,8 @@ public static function get_options() { 'cache' => Wordless::theme_temp_path(), 'strict' => true, 'debug' => $wp_debug, - 'enable_profiler' => $wp_debug + 'enable_profiler' => false, + 'error_reporting' => E_ERROR | E_USER_ERROR ); } -} \ No newline at end of file +}