Changeset 20925 for trunk/wp-includes/js/customize-controls.dev.js
- Timestamp:
- 05/26/2012 04:08:44 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/customize-controls.dev.js
r20913 r20925 406 406 success: function( response ) { 407 407 var iframe = self.loader()[0].contentWindow, 408 location = self.request.getResponseHeader('Location'); 408 location = self.request.getResponseHeader('Location'), 409 signature = 'WP_CUSTOMIZER_SIGNATURE', 410 index; 409 411 410 412 // Check if the location response header differs from the current URL. … … 414 416 return; 415 417 } 418 419 // Check for a signature in the request. 420 index = response.lastIndexOf( signature ); 421 if ( -1 === index || index < response.lastIndexOf('</html>') ) 422 return; 423 424 // Strip the signature from the request. 425 response = response.slice( 0, index ) + response.slice( index + signature.length ); 416 426 417 427 self.loader().one( 'load', self.loaded );
Note: See TracChangeset
for help on using the changeset viewer.