Changeset 5097
- Timestamp:
- 03/23/2007 11:33:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-includes/functions-formatting.php
r5067 r5097 1052 1052 $url = str_replace($strip, '', $url); 1053 1053 $url = str_replace(';//', '://', $url); 1054 $url = (strpos($url, '://') === false && substr( $url, 0, 1 ) != '/' ) ? 'http://'.$url : $url; 1054 // Append http unless a relative link starting with / or a php file. 1055 if ( strpos($url, '://') === false && 1056 substr( $url, 0, 1 ) != '/' && !preg_match('/^[a-z0-9]+?\.php/i', $url) ) 1057 $url = 'http://' . $url; 1058 1055 1059 $url = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&$1', $url); 1056 1060 if ( !is_array($protocols) )
Note: See TracChangeset
for help on using the changeset viewer.