From 71151ef2f8338bab7361a3af16c0cf9f53d87ec6 Mon Sep 17 00:00:00 2001 From: westi Date: Thu, 23 Aug 2007 21:15:50 +0000 Subject: [PATCH] Enable plugins to override the cockney replace array, fixes #4804 for 2.0.12 props andihit git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@5932 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions-formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions-formatting.php b/wp-includes/functions-formatting.php index 217e953ea3..97791af059 100644 --- a/wp-includes/functions-formatting.php +++ b/wp-includes/functions-formatting.php @@ -20,7 +20,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");