From 1532e450bb86109999b20c9024017b454468c340 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 23 Aug 2007 21:02:31 +0000 Subject: [PATCH] Enable plugins to override the cockney replace array, fixes #4804 props andihit git-svn-id: https://develop.svn.wordpress.org/trunk@5930 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 dc5d2f2d66..3a48c2684b 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -11,7 +11,7 @@ function wptexturize($text) { // if a plugin has provided an autocorrect array, use it if ( isset($wp_cockneyreplace) ) { $cockney = array_keys($wp_cockneyreplace); - $cockney_replace = array_values($wp_cockneyreplace); + $cockneyreplace = array_values($wp_cockneyreplace); } else { $cockney = array("'tain't","'twere","'twas","'tis","'twill","'til","'bout","'nuff","'round","'cause"); $cockneyreplace = array("’tain’t","’twere","’twas","’tis","’twill","’til","’bout","’nuff","’round","’cause");