Changeset 38396
- Timestamp:
- 08/27/2016 06:04:42 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-controls.js
r37955 r38396 3211 3211 3212 3212 this.add( 'previewUrl', params.previewUrl ).setter( function( to ) { 3213 var result; 3214 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( /[#?].*$/, '' ) ) ) 3213 var result, urlParser; 3214 urlParser = document.createElement( 'a' ); 3215 urlParser.href = to; 3216 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
Note: See TracChangeset
for help on using the changeset viewer.