Skip to content

Commit

Permalink
Fix wp reference error
Browse files Browse the repository at this point in the history
In a clean install, this jQuery produces a reference error for wp not defined. This corrects the error by testing for both wp and wp.customize.
  • Loading branch information
vfontjr committed Mar 30, 2018
1 parent 1d4c064 commit 96d494e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/genesis-sample.js
Expand Up @@ -42,7 +42,7 @@ var genesisSample = ( function( $ ) {

// Run after the Customizer updates.
// 1.5s delay is to allow logo area reflow.
if (typeof wp.customize != "undefined") {
if (typeof wp != "undefined" && typeof wp.customize != "undefined") {
wp.customize.bind( 'change', function ( setting ) {
setTimeout(function() {
moveContentBelowFixedHeader();
Expand Down

0 comments on commit 96d494e

Please sign in to comment.