Changeset 4309
- Timestamp:
- 10/04/2006 06:08:06 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-includes/functions-formatting.php
r4240 r4309 2 2 3 3 function wptexturize($text) { 4 global $wp_cockneyreplace; 4 5 $output = ''; 5 6 // Capture tags and everything inside them … … 17 18 $curl = str_replace('``', '“', $curl); 18 19 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 22 29 $curl = str_replace($cockney, $cockneyreplace, $curl); 23 30
Note: See TracChangeset
for help on using the changeset viewer.