Skip to content

Commit

Permalink
fixes #932
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Apr 26, 2016
1 parent ae41bfb commit a6a9177
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/field/class-kirki-field-color.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ protected function set_choices() {
if ( ! is_array( $this->choices ) ) {
$this->choices = array();
}
if ( property_exists( $this, 'alpha' ) && true == $this->alpha ) {
$this->choices['alpha'] = true;
}
if ( ! isset( $this->choices['alpha'] ) || true != $this->choices['alpha'] ) {
$this->choices['alpha'] = true;
if ( false === strpos( 'rgba', $this->default ) ) {
Expand Down

0 comments on commit a6a9177

Please sign in to comment.