Skip to content

Commit bde076c

Browse files
committed
Customizer: Prevent preview from loading during QUnit tests and causing an XHR cross-domain error.
Fixes #32666. git-svn-id: https://develop.svn.wordpress.org/trunk@33120 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 0888ce5 commit bde076c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/qunit/fixtures/customize-settings.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,11 @@ window._wpCustomizeSettings = {
133133
}
134134
};
135135
window._wpCustomizeControlsL10n = {};
136+
137+
jQuery.ajaxSetup( {
138+
beforeSend: function( e, data ) {
139+
if ( data.data.indexOf( 'wp_customize' ) !== -1 ) {
140+
return false;
141+
}
142+
}
143+
} );

0 commit comments

Comments
 (0)