| 19 | | // This is a hack, look at this more later. It works pretty well though. |
|---|
| 20 | | $cockney = array("'tain't","'twere","'twas","'tis","'twill","'til","'bout","'nuff","'round","'cause"); |
|---|
| 21 | | $cockneyreplace = array("’tain’t","’twere","’twas","’tis","’twill","’til","’bout","’nuff","’round","’cause"); |
|---|
| | 20 | // if a plugin has provided an autocorrect array, use it |
|---|
| | 21 | if ( isset($wp_cockneyreplace) ) { |
|---|
| | 22 | $cockney = array_keys($wp_cockneyreplace); |
|---|
| | 23 | $cockney_replace = array_values($wp_cockneyreplace); |
|---|
| | 24 | } else { |
|---|
| | 25 | $cockney = array("'tain't","'twere","'twas","'tis","'twill","'til","'bout","'nuff","'round","'cause"); |
|---|
| | 26 | $cockneyreplace = array("’tain’t","’twere","’twas","’tis","’twill","’til","’bout","’nuff","’round","’cause"); |
|---|
| | 27 | } |
|---|
| | 28 | |
|---|