@@ -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); |
@@ -58,8 +58,8 @@ discard block |
||
58 | 58 | /** |
59 | 59 | * Remove id, class, type and media attributes from link tags. |
60 | 60 | */ |
61 | -\add_filter('style_loader_tag', function ($input) { |
|
62 | - return \preg_replace(array( "#\s(id|class|type|media)='[^']+'#", '/\s{2,}/'), array('', ' '), $input); |
|
61 | +\add_filter('style_loader_tag', function($input) { |
|
62 | + return \preg_replace(array("#\s(id|class|type|media)='[^']+'#", '/\s{2,}/'), array('', ' '), $input); |
|
63 | 63 | }); |
64 | 64 | |
65 | 65 | /** |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | global $wp_version; |
69 | 69 | if (\version_compare($wp_version, '5.3', '<')) { |
70 | - \add_filter('script_loader_tag', function ($input) { |
|
70 | + \add_filter('script_loader_tag', function($input) { |
|
71 | 71 | return \preg_replace(array("#\s(type)='[^']+'#", '/\s{2,}/'), array('', ' '), $input); |
72 | 72 | }); |
73 | 73 | } |