Changeset 25681
- Timestamp:
- 10/03/2013 01:49:59 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-controls.js
r25680 r25681 554 554 // Check for URLs that include "/wp-admin/" or end in "/wp-admin". 555 555 // Strip hashes and query strings before testing. 556 if ( /\/wp-admin(\/|$)/.test( to.replace( /[#?].*$/, '') ) )556 if ( /\/wp-admin(\/|$)/.test( to.replace( /[#?].*$/, '' ) ) ) 557 557 return null; 558 558 … … 561 561 $.each([ to.replace( rscheme, self.scheme() ), to ], function( i, url ) { 562 562 $.each( self.allowedUrls, function( i, allowed ) { 563 if ( 0 === url.indexOf( allowed ) ) { 563 var path; 564 565 allowed = allowed.replace( /\/+$/, '' ); 566 path = url.replace( allowed, '' ); 567 568 if ( 0 === url.indexOf( allowed ) && /^([/#?]|$)/.test( path ) ) { 564 569 result = url; 565 570 return false;
Note: See TracChangeset
for help on using the changeset viewer.