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 +6 -0 1.0.5 → 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
@@ -122,8 +126,10 @@
122 126 'footerEnabled' => $this->is_legacy_section_enabled(
123 127 $this->get_scalar($attrs, 'enableTableFooter', '')
124 128 ),
125 129 'stickyHeader' => !empty($attrs['stickyTopRow']),
130 + 'stickyFirstCol' => !empty($attrs['stickyFirstCol']),
131 + 'innerBorderType' => $inner_border_type,
126 132 'caption' => (string) $this->get_scalar($attrs, 'caption', ''),
127 133 'tableWidth' => $table_dimensions['tableWidth'],
128 134 'tableAlignment' => $table_dimensions['tableAlignment'],
129 135 'cellSpacing' => array(