Cockney 'cause. http://mosquito.wordpress.org/view.php?id=1100 Props: bcrow
git-svn-id: http://svn.automattic.com/wordpress/trunk@2493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
38d509975a
commit
65e7810299
|
@ -16,8 +16,8 @@ function wptexturize($text) {
|
||||||
$curl = str_replace('``', '“', $curl);
|
$curl = str_replace('``', '“', $curl);
|
||||||
|
|
||||||
// This is a hack, look at this more later. It works pretty well though.
|
// This is a hack, look at this more later. It works pretty well though.
|
||||||
$cockney = array("'tain't","'twere","'twas","'tis","'twill","'til","'bout","'nuff","'round");
|
$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");
|
$cockneyreplace = array("’tain’t","’twere","’twas","’tis","’twill","’til","’bout","’nuff","’round","’cause");
|
||||||
$curl = str_replace($cockney, $cockneyreplace, $curl);
|
$curl = str_replace($cockney, $cockneyreplace, $curl);
|
||||||
|
|
||||||
$curl = preg_replace("/'s/", '’s', $curl);
|
$curl = preg_replace("/'s/", '’s', $curl);
|
||||||
|
|
Loading…
Reference in New Issue