We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94ee4b8 commit 07c5860Copy full SHA for 07c5860
classes/Visualizer/Gutenberg/Block.php
@@ -631,7 +631,7 @@ public function format_chart_data( $data, $series ) {
631
632
if ( $row['type'] === 'boolean' ) {
633
foreach ( $data as $o => $col ) {
634
- $data[ $o ][ $i ] = ! empty( $col[ $i ] ) ? filter_validate( $col[ $i ], FILTER_VALIDATE_BOOLEAN ) : null;
+ $data[ $o ][ $i ] = ! empty( $col[ $i ] ) ? filter_var( $col[ $i ], FILTER_VALIDATE_BOOLEAN ) : null;
635
}
636
637
0 commit comments