Namespace the customize request arg to prevent collision with plugins and themes. Props nacin. fixes #20862

git-svn-id: https://develop.svn.wordpress.org/trunk@21016 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2012-06-07 01:29:57 +00:00
parent 028e1c35cf
commit 329f3b2fd1
3 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ if ( typeof wp === 'undefined' )
hashchange: function( e ) {
var hash = window.location.toString().split('#')[1];
if ( hash && 0 === hash.indexOf( 'customize=on' ) )
if ( hash && 0 === hash.indexOf( 'wp_customize=on' ) )
Loader.open( Loader.settings.url + '?' + hash );
if ( ! hash && ! $.support.history )
@@ -104,7 +104,7 @@ if ( typeof wp === 'undefined' )
if ( $.support.history && window.location.href !== src )
history.pushState( { customize: src }, '', src );
else if ( ! $.support.history && $.support.hashchange && hash )
window.location.hash = 'customize=on&' + hash;
window.location.hash = 'wp_customize=on&' + hash;
this.trigger( 'open' );
},