Ver código fonte

:bug: altered block parser again

tags/0.9.0
j 4 anos atrás
pai
commit
14011b4841
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      plugins/cia-endpoints/includes/reformat-blocks.php

+ 4
- 0
plugins/cia-endpoints/includes/reformat-blocks.php Ver arquivo

@@ -5,6 +5,10 @@
5 5
             // Don't include whole galleries
6 6
             if ($block[innerHTML] !== "\n\n") {
7 7
                 array_push($parsed_blocks, [$block]);
8
+            } elseif ($block[innerHTML] === "\n\n") {
9
+                // Don't do anything!
10
+            } else {
11
+                array_push($parsed_blocks, $block[innerBlocks]);
8 12
             }
9 13
         }
10 14
         return $parsed_blocks;

Carregando…
Cancelar
Salvar