Bricks don't check if color-palettes.min.css exists and cause a Fatal error

If I choose External File over the Inline style, bricks don’t generate the file by default. So when I try to activate or deactive any plugin that calls update_option(‘bricks_color_change’) would cause a fatal error because the file doesn’t exists and bricks don’t check if the file exists before change it.

Steps to replicate
1 - Activate bricks
2 - Set External file
3 - Call update_option(‘bricks_color_palette’) in ‘after_setup_theme’ action

Thanks.

1 Like