| @@ -26,8 +26,13 @@ | ||
| 26 | 26 | if (in_array($block['blockName'], TagBlocks::$ignored, true)) { |
| 27 | 27 | continue; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | + // Numbered off the post it renders from, never this one. | |
| 31 | + if (isset(TagBlocks::$refContainers[$block['blockName']])) { | |
| 32 | + continue; | |
| 33 | + } | |
| 34 | + | |
| 30 | 35 | $seq++; |
| 31 | 36 | $list[$i][self::REF_KEY] = $seq; |
| 32 | 37 | if (!empty($block['innerBlocks'])) { |
| 33 | 38 | $list[$i]['innerBlocks'] = $walk($block['innerBlocks']); |