When determining a frontend, local URL in the theme customizer, match the home URL without a trailing slash.
props SergeyBiryukov. fixes #25315. Built from https://develop.svn.wordpress.org/trunk@25681 git-svn-id: http://core.svn.wordpress.org/trunk@25597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
70a406560e
commit
aef18d93cb
|
@ -560,7 +560,12 @@
|
|||
// and check if it's allowed. If not, try the original URL.
|
||||
$.each([ to.replace( rscheme, self.scheme() ), to ], function( i, url ) {
|
||||
$.each( self.allowedUrls, function( i, allowed ) {
|
||||
if ( 0 === url.indexOf( allowed ) ) {
|
||||
var path;
|
||||
|
||||
allowed = allowed.replace( /\/+$/, '' );
|
||||
path = url.replace( allowed, '' );
|
||||
|
||||
if ( 0 === url.indexOf( allowed ) && /^([/#?]|$)/.test( path ) ) {
|
||||
result = url;
|
||||
return false;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue