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
This commit is contained in:
Peter Westwood 2007-08-23 21:02:31 +00:00
parent 897531ee27
commit 1532e450bb

View File

@ -11,7 +11,7 @@ function wptexturize($text) {
// if a plugin has provided an autocorrect array, use it // if a plugin has provided an autocorrect array, use it
if ( isset($wp_cockneyreplace) ) { if ( isset($wp_cockneyreplace) ) {
$cockney = array_keys($wp_cockneyreplace); $cockney = array_keys($wp_cockneyreplace);
$cockney_replace = array_values($wp_cockneyreplace); $cockneyreplace = array_values($wp_cockneyreplace);
} else { } else {
$cockney = array("'tain't","'twere","'twas","'tis","'twill","'til","'bout","'nuff","'round","'cause"); $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"); $cockneyreplace = array("’tain’t","’twere","’twas","’tis","’twill","’til","’bout","’nuff","’round","’cause");