mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Enable plugins to override the cockney replace array, fixes #4804 props andihit
git-svn-id: http://svn.automattic.com/wordpress/trunk@5930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
31992bac0d
commit
fcd0a36f09
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user