Skip to content

Commit

Permalink
fixes #1657
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Nov 26, 2017
1 parent b542257 commit aaca09f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions controls/php/class-kirki-control-multicolor.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ class Kirki_Control_Multicolor extends Kirki_Control_Base {
*/
public $alpha = true;

/**
* Refresh the parameters passed to the JavaScript via JSON.
*
* @access public
*/
public function to_json() {
parent::to_json();

$this->json['alpha'] = (bool) $this->alpha;
}

/**
* An Underscore (JS) template for this control's content (but not its container).
*
Expand Down

0 comments on commit aaca09f

Please sign in to comment.