Browse Source

Fix colour variants (fixes #111).

pull/117/head
Ned Zimmerman 7 years ago
parent
commit
cb604c7588
No known key found for this signature in database
GPG Key ID: FF56334A013120CA
  1. 7
      inc/actions/namespace.php

7
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 );
}
/**

Loading…
Cancel
Save