|
@@ 114-127 (lines=14) @@
|
| 111 |
|
$default_no_texturize_shortcodes = array('code'); |
| 112 |
|
|
| 113 |
|
// if a plugin has provided an autocorrect array, use it |
| 114 |
|
if ( isset($wp_cockneyreplace) ) { |
| 115 |
|
$cockney = array_keys( $wp_cockneyreplace ); |
| 116 |
|
$cockneyreplace = array_values( $wp_cockneyreplace ); |
| 117 |
|
} else { |
| 118 |
|
/* translators: This is a comma-separated list of words that defy the syntax of quotations in normal use, |
| 119 |
|
* for example... 'We do not have enough words yet' ... is a typical quoted phrase. But when we write |
| 120 |
|
* lines of code 'til we have enough of 'em, then we need to insert apostrophes instead of quotes. |
| 121 |
|
*/ |
| 122 |
|
$cockney = explode( ',', _x( "'tain't,'twere,'twas,'tis,'twill,'til,'bout,'nuff,'round,'cause,'em", |
| 123 |
|
'Comma-separated list of words to texturize in your language' ) ); |
| 124 |
|
|
| 125 |
|
$cockneyreplace = explode( ',', _x( '’tain’t,’twere,’twas,’tis,’twill,’til,’bout,’nuff,’round,’cause,’em', |
| 126 |
|
'Comma-separated list of replacement words in your language' ) ); |
| 127 |
|
} |
| 128 |
|
|
| 129 |
|
$static_characters = array_merge( array( '...', '``', '\'\'', ' (tm)' ), $cockney ); |
| 130 |
|
$static_replacements = array_merge( array( '…', $opening_quote, $closing_quote, ' ™' ), $cockneyreplace ); |