Ticket #19877: 19877.2.diff
| File 19877.2.diff, 929 bytes (added by MikeHansenMe, 8 months ago) |
|---|
-
wp-includes/kses.php
974 974 /** 975 975 * Strips slashes from in front of quotes. 976 976 * 977 * This function changes the character sequence \" to just ". It leaves all977 * This function changes the character sequence \" or \' to just " or '. It leaves all 978 978 * other slashes alone. It's really weird, but the quoting from 979 979 * preg_replace(//e) seems to require this. 980 980 * … … 983 983 * @param string $string String to strip slashes 984 984 * @return string Fixed string with quoted slashes 985 985 */ 986 function wp_kses_stripslashes($string) { 987 return preg_replace('%\\\\"%', '"', $string); 986 function wp_kses_stripslashes( $string ) { 987 $string = preg_replace( '%\\\\"%', '"', $string ); 988 $string = preg_replace( "%\\\\'%", "'", $string ); 989 990 return $string; 988 991 } 989 992 990 993 /**