Fix single quote sanitization. Bug 594. Hat Tip: bcrow.
git-svn-id: https://develop.svn.wordpress.org/trunk@2001 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1e15c95646
commit
10d81f7d37
|
@ -104,7 +104,7 @@ function wp_specialchars( $text, $quotes = 0 ) {
|
|||
$text = str_replace('>', '>', $text);
|
||||
if ( $quotes ) {
|
||||
$text = str_replace('"', '"', $text);
|
||||
$text = str_replace('"', ''', $text);
|
||||
$text = str_replace("'", ''', $text);
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue