Changeset 12504 for trunk/wp-includes/formatting.php
- Timestamp:
- 12/23/2009 11:00:29 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r12503 r12504 2842 2842 2843 2843 $match = array(); 2844 $found = false; 2844 2845 while ( preg_match('/%[a-f0-9]{2}/i', $filtered, $match) ) { 2845 2846 $filtered = str_replace($match[0], '', $filtered); 2846 } 2847 // Strip out the whitespace that may now exist after removing the octets. 2848 $filtered = trim( preg_replace('/[\r\n\t ]+/', ' ', $filtered) ); 2847 $found = true; 2848 } 2849 2850 if ( $found ) { 2851 // Strip out the whitespace that may now exist after removing the octets. 2852 $filtered = trim( preg_replace('/ +/', ' ', $filtered) ); 2853 } 2849 2854 2850 2855 return apply_filters('sanitize_text_field', $filtered, $str);
Note: See TracChangeset
for help on using the changeset viewer.