wp_parse_str() from mdawaffe. see #4467

git-svn-id: https://develop.svn.wordpress.org/trunk@5709 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-06-14 22:46:59 +00:00
parent 09da00f7fe
commit 6b7bc3b1b6
3 changed files with 31 additions and 34 deletions
+7
View File
@@ -1188,4 +1188,11 @@ function sanitize_option($option, $value) { // Remember to call stripslashes!
return $value;
}
function wp_parse_str( $string, &$array ) {
parse_str( $string, $array );
if ( get_magic_quotes_gpc() )
$array = stripslashes_deep( $array ); // parse_str() adds slashes if magicquotes is on. See: http://php.net/parse_str
$array = apply_filters( 'wp_parse_str', $array );
}
?>