Customizer: Redirect back to referrer. If referrer is a front end page, load that page in the customizer preview. Props nacin, koopersmith. fixes #20877

git-svn-id: https://develop.svn.wordpress.org/trunk@21028 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2012-06-08 18:45:12 +00:00
parent be6b3ffe21
commit 6e10d0d0b4
4 changed files with 28 additions and 8 deletions
+1 -1
View File
@@ -498,7 +498,7 @@ if ( typeof wp === 'undefined' )
$.extend( this, options || {} );
this.add( 'channel', params.channel );
this.add( 'url', params.url );
this.add( 'url', params.url || '' );
this.add( 'targetWindow', params.targetWindow || defaultTarget );
this.add( 'origin', this.url() ).link( this.url ).setter( function( to ) {
return to.replace( /([^:]+:\/\/[^\/]+).*/, '$1' );