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
This commit is contained in:
westi 2010-11-15 08:52:36 +00:00
parent 478186859b
commit 17d25e2cdc
1 changed files with 2 additions and 2 deletions

View File

@ -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