From 9f6709c599cf1902755eb59a7e27e1045e5f3f2b Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 10 Feb 2012 22:28:37 +0000 Subject: [PATCH] Use correct reference in regex. props danielbachhuber, fixes #20018. git-svn-id: https://develop.svn.wordpress.org/trunk@19907 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index d0ac14a874..7e5a760a76 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -91,7 +91,7 @@ function wptexturize($text) { if ( '"' != $closing_quote ) $dynamic[ '/"(\s|\S|\Z)/' ] = $closing_quote . '$1'; // closing double quote if ( "'" != $closing_single_quote ) - $dynamic[ '/\'([\s.]|\Z)/' ] = $closing_single_quote . '$2'; // closing single quote + $dynamic[ '/\'([\s.]|\Z)/' ] = $closing_single_quote . '$1'; // closing single quote $dynamic[ '/\b(\d+)x(\d+)\b/' ] = '$1×$2'; // 9x9 (times)