@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -add_action('after_setup_theme', function () { |
|
3 | +add_action('after_setup_theme', function() { |
|
4 | 4 | add_theme_support('title-tag'); |
5 | 5 | add_theme_support('post-thumbnails'); |
6 | 6 |
@@ -28,11 +28,11 @@ discard block |
||
28 | 28 | * Remove self-closing tag |
29 | 29 | * |
30 | 30 | */ |
31 | -add_action('init', function () { |
|
31 | +add_action('init', function() { |
|
32 | 32 | // Originally from http://wpengineer.com/1438/wordpress-header/ |
33 | 33 | remove_action('wp_head', 'feed_links_extra', 3); |
34 | 34 | add_action('wp_head', 'ob_start', 1, 0); |
35 | - add_action('wp_head', function () { |
|
35 | + add_action('wp_head', function() { |
|
36 | 36 | $pattern = '/.*' . preg_quote(esc_url(get_feed_link('comments_' . get_default_feed())), '/') . '.*[\r\n]+/'; |
37 | 37 | echo preg_replace($pattern, '', ob_get_clean()); |
38 | 38 | }, 3, 0); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * |
61 | 61 | * Clean up output of stylesheet <link> tags |
62 | 62 | */ |
63 | -add_filter('style_loader_tag', function ($input) { |
|
63 | +add_filter('style_loader_tag', function($input) { |
|
64 | 64 | preg_match_all( |
65 | 65 | "!<link rel='stylesheet'\s?(id='[^']+')?\s+href='(.*)' type='text/css' media='(.*)' />!", |
66 | 66 | $input, |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | global $wp_version; |
81 | 81 | if (version_compare($wp_version, '5.3', '<')) { |
82 | - add_filter('script_loader_tag', function ($input) { |
|
82 | + add_filter('script_loader_tag', function($input) { |
|
83 | 83 | return preg_replace(["#\s(type)='[^']+'#", '/\s{2,}/'], ['', ' '], $input); |
84 | 84 | }); |
85 | 85 | } |