From 17d25e2cdc18d3fe14cdc1a3a0a75f4eac39b9f7 Mon Sep 17 00:00:00 2001 From: westi Date: Mon, 15 Nov 2010 08:52:36 +0000 Subject: [PATCH] Fix regression in wptexturize with single quotes when used for contraction. See #15241 props norbertm. git-svn-id: http://svn.automattic.com/wordpress/trunk@16378 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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′