PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.1
Elementor Website Builder – more than just a page builder v4.3.1
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | modules/variables/utils/template-library-variables-snapshot-builder.php +3 -1 4.0.9 → 4.3.1 View file →
@@ -167,14 +167,16 @@
167 167 }
168 168 return $count;
169 169 }
170 170
171 - protected function save_data( array $items, array $metadata ): array {
171 + protected function save_data( array $data, array $metadata ): array {
172 172 $repository = $this->get_repository_or_null();
173 173
174 174 if ( ! $repository ) {
175 175 return [];
176 176 }
177 +
178 + $items = $data['updated_items'] ?? [];
177 179
178 180 $updated_collection = Variables_Collection::hydrate( [
179 181 'data' => $items,
180 182 'watermark' => $metadata['watermark'] ?? 0,