diff --git a/inc/actions/namespace.php b/inc/actions/namespace.php index c4e17d1..756c6f3 100644 --- a/inc/actions/namespace.php +++ b/inc/actions/namespace.php @@ -248,8 +248,11 @@ function add_color_variants( $option, $old_value, $value ) { $color->green() * 0.9, $color->blue() * 0.9 ); - update_option( $option . '_dark', (string) $color_dark ); - update_option( $option . '_alpha', (string) $color_alpha ); + $color_alpha = (string) $color_alpha; + $color_dark = (string) $color_dark; + + update_option( $option . '_dark', $color_dark ); + update_option( $option . '_alpha', $color_alpha ); } /**