Changeset 5096
- Timestamp:
- 03/23/2007 11:32:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/wp-includes/formatting.php
r5091 r5096 1075 1075 // Append http unless a relative link starting with / or a php file. 1076 1076 if ( strpos($url, '://') === false && 1077 substr( $url, 0, 1 ) != '/' && !preg_match('/^[a-z0-9]+ .php/i', $url) )1077 substr( $url, 0, 1 ) != '/' && !preg_match('/^[a-z0-9]+?\.php/i', $url) ) 1078 1078 $url = 'http://' . $url; 1079 1079 1080 $url = (strpos($url, '://') === false && substr( $url, 0, 1 ) != '/' ) ? 'http://'.$url : $url;1081 1080 $url = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&$1', $url); 1082 1081 if ( !is_array($protocols) )
Note: See TracChangeset
for help on using the changeset viewer.