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
This commit is contained in:
parent
0888ce55b1
commit
bde076cbfb
@ -133,3 +133,11 @@ window._wpCustomizeSettings = {
|
||||
}
|
||||
};
|
||||
window._wpCustomizeControlsL10n = {};
|
||||
|
||||
jQuery.ajaxSetup( {
|
||||
beforeSend: function( e, data ) {
|
||||
if ( data.data.indexOf( 'wp_customize' ) !== -1 ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
Loading…
Reference in New Issue
Block a user