diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index cb5b9304e7..7e1ff7c183 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -61,11 +61,11 @@ function wptexturize($text) { '/\'([^\']*)\'([^\']*)\'/' => '‘$1’$2’', // 'test's' + '/(\w)\'(\w)/' => '$1’$2', // test's + '/\'([^\']*)\'/' => '‘$1’', // 'asd' '/"([^"]*)"/' => $opening_quote . '$1' . $closing_quote, // "qwe" - '/(\w)\'(\w)/' => '$1’$2', // test's - '/(\d)"/' => '$1″', // 9" -> 9″ '/(\d)\'/' => '$1′', // 9' -> 9′