Skip to content

Commit 1c7194e

Browse files
committed
FIX: dimensions values processing
1 parent 5c0c07f commit 1c7194e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/cherry-ui-elements/inc/ui-elements/ui-dimensions/ui-dimensions.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ public function get_fields() {
168168
$result .= $this->get_units();
169169
$result .= '<div class="cherry-ui-dimensions__values">';
170170

171+
$value['is_linked'] = filter_var( $value['is_linked'], FILTER_VALIDATE_BOOLEAN );
172+
171173
foreach ( array( 'top', 'right', 'bottom', 'left' ) as $field ) {
172174
$result .= sprintf(
173175
$number,

0 commit comments

Comments
 (0)