Skip to content

Commit

Permalink
fixes #1567
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Oct 5, 2017
1 parent 7f10ff0 commit e3050ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controls/code/class-kirki-control-code.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ public function enqueue() {
wp_register_script( 'codemirror', trailingslashit( Kirki::$url ) . 'assets/vendor/codemirror/lib/codemirror.js', array( 'jquery' ) );
wp_enqueue_script( 'kirki-dynamic-control', trailingslashit( Kirki::$url ) . 'assets/js/dynamic-control.js', array( 'jquery', 'customize-base' ), false, true );

// Make sure $this->choices['language'] is defined.
$this->choices['language'] = ( ! isset( $this->choices['language'] ) ) ? 'css' : $this->choices['language'];

// If we're using html mode, we'll also need to include the multiplex addon
// as well as dependencies for XML, JS, CSS languages.
switch ( $this->choices['language'] ) {
Expand Down

0 comments on commit e3050ef

Please sign in to comment.