Skip to content

Commit

Permalink
bugfix for #2009
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Nov 10, 2018
1 parent 78215b9 commit 68c116c
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions modules/css/class-kirki-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,18 +240,16 @@ protected function parse_output() {

$value = $this->process_value( $value, $output );

// Set the context.
if ( ! isset( $output['context'] ) || empty( $output['context'] ) ) {
$output['context'] = array( 'front' );
}

// Check if this is an admin style.
if ( is_admin() && ! is_customize_preview() ) {
if ( ! in_array( 'editor', $output['context'] ) ) {
return;

// Check if this is an admin style.
if ( ! isset( $output['context'] ) || ! in_array( 'editor', $output['context'] ) ) {
continue;
}
} elseif ( ! in_array( 'front', $output['context'] ) ) {
return;
} elseif ( isset( $output['context'] ) && ! in_array( 'front', $output['context'] ) ) {

// Check if this is a frontend style.
continue;
}
$this->process_output( $output, $value );
}
Expand Down

0 comments on commit 68c116c

Please sign in to comment.