@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | // This prevents unintended scrolling on pages with few content, when logged in. |
24 | 24 | add_theme_support('admin-bar', array('callback' => '__return_false')); |
25 | 25 | |
26 | -add_action('after_setup_theme', function () { |
|
26 | +add_action('after_setup_theme', function() { |
|
27 | 27 | /** |
28 | 28 | * Make theme available for translation. |
29 | 29 | * Translations can be filed in the /languages/ directory. |
@@ -33,11 +33,11 @@ discard block |
||
33 | 33 | |
34 | 34 | |
35 | 35 | // Add rules to .htaccess to restrict access to .twig files on theme setup. |
36 | -add_action('after_setup_theme', function () { |
|
36 | +add_action('after_setup_theme', function() { |
|
37 | 37 | add_filter('mod_rewrite_rules', ['Flynt\Init', 'addTwigRestrictionRules']); |
38 | 38 | }); |
39 | 39 | // Remove twig restriction rules from .htaccess on theme switch. |
40 | -add_action('switch_theme', function () { |
|
40 | +add_action('switch_theme', function() { |
|
41 | 41 | remove_filter('mod_rewrite_rules', ['Flynt\Init', 'addTwigRestrictionRules']); |
42 | 42 | flush_rewrite_rules(); |
43 | 43 | }); |