From cb604c758880f0ef190ee8ffbcb590e5f76be8ef Mon Sep 17 00:00:00 2001 From: Ned Zimmerman Date: Mon, 26 Mar 2018 13:49:52 -0300 Subject: [PATCH] Fix colour variants (fixes #111). --- inc/actions/namespace.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 ); } /**