Completed
Push — constructionplanless_gutenberg ( 97fb4a )
by Dominik
01:32
created
Features/RemoveEditor/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Flynt\Features\RemoveEditor;
4 4
 
5
-add_action('init', function () {
5
+add_action('init', function() {
6 6
     if (!apply_filters('use_block_editor_for_post_type', true, 'post')) {
7 7
         remove_post_type_support('post', 'editor');
8 8
     }
Please login to merge, or discard this patch.
Features/CleanHead/functions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@  discard block
 block discarded – undo
12 12
  * Remove self-closing tag
13 13
  *
14 14
  */
15
-add_action('init', function () {
15
+add_action('init', function() {
16 16
     // Originally from http://wpengineer.com/1438/wordpress-header/
17 17
     remove_action('wp_head', 'feed_links_extra', 3);
18 18
     add_action('wp_head', 'ob_start', 1, 0);
19
-    add_action('wp_head', function () {
19
+    add_action('wp_head', function() {
20 20
         $pattern = '/.*' . preg_quote(esc_url(get_feed_link('comments_' . get_default_feed())), '/') . '.*[\r\n]+/';
21 21
         echo preg_replace($pattern, '', ob_get_clean());
22 22
     }, 3, 0);
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
  *
45 45
  * Clean up output of stylesheet <link> tags
46 46
  */
47
-add_filter('style_loader_tag', function ($input) {
47
+add_filter('style_loader_tag', function($input) {
48 48
     preg_match_all(
49 49
         "!<link rel='stylesheet'\s?(id='[^']+')?\s+href='(.*)' type='text/css' media='(.*)' />!",
50 50
         $input,
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
  * Clean up output of <script> tags
65 65
  */
66 66
 if (!is_admin()) {
67
-    add_filter('script_loader_tag', function ($input) {
67
+    add_filter('script_loader_tag', function($input) {
68 68
         $input = str_replace("type='text/javascript' ", '', $input);
69 69
         return str_replace("'", '"', $input);
70 70
     });
Please login to merge, or discard this patch.
Features/AcfGutenberg/functions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             ],
43 43
         ];
44 44
 
45
-        add_action('enqueue_block_editor_assets', function () use ($config) {
45
+        add_action('enqueue_block_editor_assets', function() use ($config) {
46 46
             $name = ucfirst($config['name']);
47 47
             Asset::enqueue([
48 48
                 'type' => 'style',
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
 function renderBlockCallback($componentName)
60 60
 {
61
-    return function ($block, $content, $isPreview, $postId) use ($componentName) {
61
+    return function($block, $content, $isPreview, $postId) use ($componentName) {
62 62
         $html = Timber::compile_string('{{ renderComponent(name, data)}}', [
63 63
             'name' => ucfirst($componentName),
64 64
             'data' => get_fields(),
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     };
68 68
 };
69 69
 
70
-add_filter('block_categories', function ($categories, $post) {
70
+add_filter('block_categories', function($categories, $post) {
71 71
     return array_merge(
72 72
         [
73 73
             [
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 add_theme_support('align-wide');
84 84
 add_theme_support('align-full');
85 85
 
86
-add_action('enqueue_block_editor_assets', function () {
86
+add_action('enqueue_block_editor_assets', function() {
87 87
     Asset::enqueue([
88 88
         'name' => 'Flynt/assets',
89 89
         'path' => 'assets/style.css',
Please login to merge, or discard this patch.