Changeset 10521 for sites/trunk/wp-themes.com/public_html/wp-content/mu-plugins/pub/open-links-in-new-window.php
- Timestamp:
- 12/16/2020 07:35:27 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wp-themes.com/public_html/wp-content/mu-plugins/pub/open-links-in-new-window.php
r10520 r10521 24 24 // Internet Explorer and invalid links, fall back to regex. 25 25 if ( hostname = link.href.match( /^\s*(?:(?:https?:)?\/\/)([^/]+)(\/|$)/ ) ) { 26 hostname = hostname[0]; 26 hostname = hostname[1]; 27 } else if ( "mailto" === link.href.substr( 0, 6 ) { 28 hostname = "mailto"; // not whitelisted hostname to fall through. 27 29 } 28 30 }
Note: See TracChangeset
for help on using the changeset viewer.