Skip to content

Commit

Permalink
phug new error_reporting and profiler always false
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandro-fazzi committed Feb 22, 2018
1 parent eeacf66 commit ba63f64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions tests/render_helper_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
Expand All @@ -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()
);
Expand Down
5 changes: 3 additions & 2 deletions wordless/helpers/pug/wordless_pug_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
}
}

0 comments on commit ba63f64

Please sign in to comment.