Changes from trunk/wp-includes/formatting.php at r5262 to branches/2.2/wp-includes/formatting.php at r5735
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/wp-includes/formatting.php
r5262 r5735 1104 1104 function js_escape($text) { 1105 1105 $safe_text = wp_specialchars($text, 'double'); 1106 $safe_text = str_replace(''', "'", $safe_text);1106 $safe_text = preg_replace('/&#(x)?0*(?(1)27|39);?/i', "'", stripslashes($safe_text)); 1107 1107 $safe_text = preg_replace("/\r?\n/", "\\n", addslashes($safe_text)); 1108 1108 return apply_filters('js_escape', $safe_text, $text); … … 1119 1119 } 1120 1120 1121 function wp_parse_str( $string, &$array ) { 1122 parse_str( $string, $array ); 1123 if ( get_magic_quotes_gpc() ) 1124 $array = stripslashes_deep( $array ); // parse_str() adds slashes if magicquotes is on. See: http://php.net/parse_str 1125 $array = apply_filters( 'wp_parse_str', $array ); 1126 } 1127 1121 1128 ?>
Note: See TracChangeset
for help on using the changeset viewer.