Skip to content

Commit

Permalink
exclude postMessage for #2009
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Nov 9, 2018
1 parent e1811a1 commit 3755f25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/postmessage/class-kirki-modules-postmessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ protected function script( $args ) {
if ( ! isset( $js_var['function'] ) || 'html' !== $js_var['function'] ) {
$add_css = true;
}
if ( isset( $js_var['context'] ) && ! in_array( 'front', $js_var['context'] ) ) {
$add_css = false;
}
}

if ( $add_css ) {
Expand Down

0 comments on commit 3755f25

Please sign in to comment.