Changeset 5952 for trunk/wp-includes/formatting.php
- Timestamp:
- 08/27/2007 11:31:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r5930 r5952 1075 1075 1076 1076 function clean_url( $url, $protocols = null ) { 1077 $original_url = $url; 1078 1077 1079 if ('' == $url) return $url; 1078 1080 $url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%]|i', '', $url); … … 1090 1092 if ( wp_kses_bad_protocol( $url, $protocols ) != $url ) 1091 1093 return ''; 1092 return $url; 1094 1095 return apply_filters('clean_url', $url, $original_url); 1093 1096 } 1094 1097
Note: See TracChangeset
for help on using the changeset viewer.