Skip to content

Commit 84ea140

Browse files
release: version 1.5.8
- Add Lottie Animations Block. - Add Progress Bar Block. - Prevent old custom CSS from being cached. - Fix Slider in Section's Vertical Alignment on AMP. - Consensual Tracking Data.
2 parents ca245b6 + ed590f4 commit 84ea140

8 files changed

+521
-529
lines changed

build/build.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

class-otter-blocks.php

+48
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,54 @@ public function register_settings() {
192192
'show_in_rest' => true,
193193
)
194194
);
195+
196+
register_setting(
197+
'themeisle_blocks_settings',
198+
'otter_blocks_logger_data',
199+
array(
200+
'type' => 'object',
201+
'description' => __( 'Anonymous data tracking object.', 'otter-blocks' ),
202+
'show_in_rest' => array(
203+
'schema' => array(
204+
'type' => 'object',
205+
'properties' => array(
206+
'blocks' => array(
207+
'type' => 'array',
208+
'items' => array(
209+
'type' => 'object',
210+
'properties' => array(
211+
'name' => array(
212+
'type' => 'string',
213+
),
214+
'instances' => array(
215+
'type' => 'number',
216+
),
217+
),
218+
),
219+
),
220+
'templates' => array(
221+
'type' => 'array',
222+
'items' => array(
223+
'type' => 'object',
224+
'properties' => array(
225+
'url' => array(
226+
'type' => 'string',
227+
),
228+
'instances' => array(
229+
'type' => 'number',
230+
),
231+
),
232+
),
233+
),
234+
),
235+
),
236+
),
237+
'default' => array(
238+
'blocks' => array(),
239+
'templates' => array(),
240+
),
241+
)
242+
);
195243
}
196244

197245
/**

composer.lock

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)