diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
index 8fa7bb0..a02e2b5 100644
|
|
|
|
| 3210 | 3210 | // ssl certs. |
| 3211 | 3211 | |
| 3212 | 3212 | this.add( 'previewUrl', params.previewUrl ).setter( function( to ) { |
| 3213 | | var result; |
| | 3213 | var result, urlParser; |
| | 3214 | urlParser = document.createElement( 'a' ); |
| | 3215 | urlParser.href = to; |
| 3214 | 3216 | |
| 3215 | | // Check for URLs that include "/wp-admin/" or end in "/wp-admin". |
| 3216 | | // Strip hashes and query strings before testing. |
| 3217 | | if ( /\/wp-admin(\/|$)/.test( to.replace( /[#?].*$/, '' ) ) ) |
| | 3217 | // Abort if URL is for admin or (static) files in wp-includes or wp-content. |
| | 3218 | if ( /\/wp-(admin|includes|content)(\/|$)/.test( urlParser.pathname ) ) { |
| 3218 | 3219 | return null; |
| | 3220 | } |
| 3219 | 3221 | |
| 3220 | 3222 | // Attempt to match the URL to the control frame's scheme |
| 3221 | 3223 | // and check if it's allowed. If not, try the original URL. |