diff --git a/wp-includes/functions-formatting.php b/wp-includes/functions-formatting.php index 11f254b275..1acf7a1799 100644 --- a/wp-includes/functions-formatting.php +++ b/wp-includes/functions-formatting.php @@ -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; }