Changeset 5067
- Timestamp:
- 03/21/07 00:38:05 (1 year ago)
- Files:
-
- branches/2.0/wp-includes/functions-formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.0/wp-includes/functions-formatting.php
r4672 r5067 1052 1052 $url = str_replace($strip, '', $url); 1053 1053 $url = str_replace(';//', '://', $url); 1054 $url = ( !strstr($url, '://')) ? 'http://'.$url : $url;1054 $url = (strpos($url, '://') === false && substr( $url, 0, 1 ) != '/' ) ? 'http://'.$url : $url; 1055 1055 $url = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&$1', $url); 1056 1056 if ( !is_array($protocols) )
