PluginProbe
Tableberg – Simple Gutenberg Table Block / 1.2.0
Tableberg – Simple Gutenberg Table Block v1.2.0
1.2.0 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 trunk 0.0.2 0.2.1 0.3.2 0.3.3 0.4.1 0.5.0 0.5.1 0.5.2 0.5.3 0.5.4 0.5.5 0.5.6 All 43 releases
← All changes | renderer/Migrations/TableBlockMigratorV0ToV1.php +5 -0 1.1.1 → 1.2.0 View file →
@@ -110,8 +110,12 @@
110 110 $table_dimensions = $this->map_table_dimensions(
111 111 $this->get_scalar($attrs, 'tableWidth', ''),
112 112 $this->get_scalar($attrs, 'tableAlignment', '')
113 113 );
114 + $inner_border_type = $this->get_scalar($attrs, 'innerBorderType', '');
115 + if (!in_array($inner_border_type, array('row', 'col'), true)) {
116 + $inner_border_type = '';
117 + }
114 118 $legacy_search_position = $this->get_scalar($attrs, 'searchPosition', 'left');
115 119 $legacy_responsive = $this->get_array($attrs, 'responsive', array());
116 120 $legacy_breakpoints = $this->get_array($legacy_responsive, 'breakpoints', array());
117 121
@@ -123,8 +127,9 @@
123 127 $this->get_scalar($attrs, 'enableTableFooter', '')
124 128 ),
125 129 'stickyHeader' => !empty($attrs['stickyTopRow']),
126 130 'stickyFirstCol' => !empty($attrs['stickyFirstCol']),
131 + 'innerBorderType' => $inner_border_type,
127 132 'caption' => (string) $this->get_scalar($attrs, 'caption', ''),
128 133 'tableWidth' => $table_dimensions['tableWidth'],
129 134 'tableAlignment' => $table_dimensions['tableAlignment'],
130 135 'cellSpacing' => array(