Fix regression in wptexturize with single quotes when used for contraction. See #15241 props norbertm.

git-svn-id: https://develop.svn.wordpress.org/trunk@16378 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-11-15 08:52:36 +00:00
parent 8d9b2cd2b3
commit 9b80ab8ce5

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