Changeset 30383 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 11/19/2014 01:52:57 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r30105 r30383 3240 3240 */ 3241 3241 function wp_make_link_relative( $link ) { 3242 return preg_replace( '| https?://[^/]+(/.*)|i', '$1', $link );3242 return preg_replace( '|^(https?:)?//[^/]+(/.*)|i', '$2', $link ); 3243 3243 } 3244 3244
Note: See TracChangeset
for help on using the changeset viewer.