Changeset 628 for trunk/wp-includes/vars.php
- Timestamp:
- 12/18/2003 09:36:13 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/vars.php
r611 r628 4 4 5 5 #b2 version 6 $ b2_version = '0.80';6 $wp_version = '0.80'; 7 7 8 8 #BBcode search and replace arrays 9 $ b2_bbcode['in'] = array(9 $wp_bbcode['in'] = array( 10 10 '#\[b](.+?)\[/b]#is', // Formatting tags 11 11 '#\[i](.+?)\[/i]#is', … … 21 21 # '#\[email=(.+?)](.+?)\[/email]#eis' 22 22 ); 23 $ b2_bbcode['out'] = array(23 $wp_bbcode['out'] = array( 24 24 '<strong>$1</strong>', // Formatting tags 25 25 '<em>$1</em>', … … 37 37 38 38 #GreyMatter formatting search and replace arrays 39 $ b2_gmcode['in'] = array(39 $wp_gmcode['in'] = array( 40 40 '#\\*\*(.+?)\\*\*#is', // **bold** 41 41 '#\\\\(.+?)\\\\#is', // \\italic\\ 42 42 '#\__(.+?)\__#is' // __underline__ 43 43 ); 44 $ b2_gmcode['out'] = array(44 $wp_gmcode['out'] = array( 45 45 '<strong>$1</strong>', 46 46 '<em>$1</em>', … … 49 49 50 50 #Translation of HTML entities and special characters 51 $ b2_htmltrans = array_flip(get_html_translation_table(HTML_ENTITIES));52 $ b2_htmltrans['<'] = '<'; # preserve HTML53 $ b2_htmltrans['>'] = '>'; # preserve HTML54 $ b2_htmltransbis = array(51 $wp_htmltrans = array_flip(get_html_translation_table(HTML_ENTITIES)); 52 $wp_htmltrans['<'] = '<'; # preserve HTML 53 $wp_htmltrans['>'] = '>'; # preserve HTML 54 $wp_htmltransbis = array( 55 55 '' => '–', 56 56 '' => '—', … … 96 96 '⟩' => '〉', '◊' => '◊', '♠' => '♠', '♣' => '♣', '♥' => '♥', '♦' => '♦' 97 97 ); 98 $ b2_htmltrans = array_merge($b2_htmltrans,$b2_htmltransbis);98 $wp_htmltrans = array_merge($wp_htmltrans,$wp_htmltransbis); 99 99 100 100 #Translation of invalid Unicode references range to valid range 101 $ b2_htmltranswinuni = array(101 $wp_htmltranswinuni = array( 102 102 '€' => '€', // the Euro sign 103 103 '' => '', … … 165 165 166 166 # browser-specific javascript corrections 167 $ b2_macIE_correction['in'] = array(167 $wp_macIE_correction['in'] = array( 168 168 '/\%uFFD4/', '/\%uFFD5/', '/\%uFFD2/', '/\%uFFD3/', 169 169 '/\%uFFA5/', '/\%uFFD0/', '/\%uFFD1/', '/\%uFFBD/', … … 172 172 '/\%uFFDB/' 173 173 ); 174 $ b2_macIE_correction['out'] = array(174 $wp_macIE_correction['out'] = array( 175 175 '‘', '’', '“', '”', 176 176 '•', '–', '—', 'Ω', … … 179 179 '€' 180 180 ); 181 $ b2_gecko_correction['in'] = array(181 $wp_gecko_correction['in'] = array( 182 182 '/\â/', '/\â/', '/\â/', '/\â/', 183 183 '/\â¢/', '/\â/', '/\â/', '/\Ω/', … … 186 186 '/\â¬/', '/\â/' 187 187 ); 188 $ b2_gecko_correction['out'] = array(188 $wp_gecko_correction['out'] = array( 189 189 '&8216;', '’', '“', '”', 190 190 '•', '–', '—', 'Ω', … … 199 199 200 200 # if the config file does not provide the smilies array, let's define it here 201 if (!isset($ b2smiliestrans)) {202 $ b2smiliestrans = array(201 if (!isset($wpsmiliestrans)) { 202 $wpsmiliestrans = array( 203 203 ' :)' => 'icon_smile.gif', 204 204 ' :D' => 'icon_biggrin.gif', … … 258 258 } 259 259 } 260 uksort($ b2smiliestrans, 'smiliescmp');260 uksort($wpsmiliestrans, 'smiliescmp'); 261 261 262 262 # generates smilies' search & replace arrays 263 foreach($ b2smiliestrans as $smiley => $img) {264 $ b2_smiliessearch[] = $smiley;263 foreach($wpsmiliestrans as $smiley => $img) { 264 $wp_smiliessearch[] = $smiley; 265 265 $smiley_masked = ''; 266 266 for ($i = 0; $i < strlen($smiley); $i = $i + 1) { 267 267 $smiley_masked .= substr($smiley, $i, 1).chr(160); 268 268 } 269 $ b2_smiliesreplace[] = " <img src='$smilies_directory/$img' alt='$smiley_masked' />";269 $wp_smiliesreplace[] = " <img src='$smilies_directory/$img' alt='$smiley_masked' />"; 270 270 } 271 271
Note: See TracChangeset
for help on using the changeset viewer.