diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index 36e34a19e9..d4612c4c2b 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -118,6 +118,11 @@ function wptexturize($text) { $dynamic[ '/(?<=\A|[([{<"]|' . $spaces . ')\'/' ] = $opening_single_quote; } + // Apostrophe in a word. No spaces or double apostrophes. + if ( "'" != $apos ) { + $dynamic[ '/(?