Make WordPress Core


Ignore:
Timestamp:
12/18/2003 09:36:13 AM (21 years ago)
Author:
saxmatt
Message:

Renaming Reloaded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/vars.php

    r611 r628  
    44
    55#b2 version
    6 $b2_version = '0.80';
     6$wp_version = '0.80';
    77
    88#BBcode search and replace arrays
    9 $b2_bbcode['in'] = array(
     9$wp_bbcode['in'] = array(
    1010    '#\[b](.+?)\[/b]#is',       // Formatting tags
    1111    '#\[i](.+?)\[/i]#is',
     
    2121#   '#\[email=(.+?)](.+?)\[/email]#eis'
    2222);
    23 $b2_bbcode['out'] = array(
     23$wp_bbcode['out'] = array(
    2424    '<strong>$1</strong>',      // Formatting tags
    2525    '<em>$1</em>',
     
    3737
    3838#GreyMatter formatting search and replace arrays
    39 $b2_gmcode['in'] = array(
     39$wp_gmcode['in'] = array(
    4040    '#\\*\*(.+?)\\*\*#is',      // **bold**
    4141    '#\\\\(.+?)\\\\#is',        // \\italic\\
    4242    '#\__(.+?)\__#is'       // __underline__
    4343);
    44 $b2_gmcode['out'] = array(
     44$wp_gmcode['out'] = array(
    4545    '<strong>$1</strong>',
    4646    '<em>$1</em>',
     
    4949
    5050#Translation of HTML entities and special characters
    51 $b2_htmltrans = array_flip(get_html_translation_table(HTML_ENTITIES));
    52 $b2_htmltrans['<'] = '<';   # preserve HTML
    53 $b2_htmltrans['>'] = '>';   # preserve HTML
    54 $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(
    5555    '–' => '&#8211;',
    5656    '—' => '&#8212;',
     
    9696    '&rang;' => '&#9002;', '&loz;' => '&#9674;', '&spades;' => '&#9824;', '&clubs;' => '&#9827;', '&hearts;' => '&#9829;', '&diams;' => '&#9830;'
    9797);
    98 $b2_htmltrans = array_merge($b2_htmltrans,$b2_htmltransbis);
     98$wp_htmltrans = array_merge($wp_htmltrans,$wp_htmltransbis);
    9999
    100100#Translation of invalid Unicode references range to valid range
    101 $b2_htmltranswinuni = array(
     101$wp_htmltranswinuni = array(
    102102    '&#128;' => '&#8364;', // the Euro sign
    103103    '&#129;' => '',
     
    165165
    166166# browser-specific javascript corrections
    167 $b2_macIE_correction['in'] = array(
     167$wp_macIE_correction['in'] = array(
    168168    '/\%uFFD4/', '/\%uFFD5/', '/\%uFFD2/', '/\%uFFD3/',
    169169    '/\%uFFA5/', '/\%uFFD0/', '/\%uFFD1/', '/\%uFFBD/',
     
    172172    '/\%uFFDB/'
    173173);
    174 $b2_macIE_correction['out'] = array(
     174$wp_macIE_correction['out'] = array(
    175175    '&lsquo;', '&rsquo;', '&ldquo;', '&rdquo;',
    176176    '&bull;', '&ndash;', '&mdash;', '&Omega;',
     
    179179    '&euro;'
    180180);
    181 $b2_gecko_correction['in'] = array(
     181$wp_gecko_correction['in'] = array(
    182182    '/\‘/', '/\’/', '/\“/', '/\”/',
    183183    '/\•/', '/\–/', '/\—/', '/\Ω/',
     
    186186    '/\€/', '/\ /'
    187187);
    188 $b2_gecko_correction['out'] = array(
     188$wp_gecko_correction['out'] = array(
    189189    '&8216;', '&rsquo;', '&ldquo;', '&rdquo;',
    190190    '&bull;', '&ndash;', '&mdash;', '&Omega;',
     
    199199
    200200# if the config file does not provide the smilies array, let's define it here
    201 if (!isset($b2smiliestrans)) {
    202     $b2smiliestrans = array(
     201if (!isset($wpsmiliestrans)) {
     202    $wpsmiliestrans = array(
    203203        ' :)'        => 'icon_smile.gif',
    204204        ' :D'        => 'icon_biggrin.gif',
     
    258258    }
    259259}
    260 uksort($b2smiliestrans, 'smiliescmp');
     260uksort($wpsmiliestrans, 'smiliescmp');
    261261
    262262# generates smilies' search & replace arrays
    263 foreach($b2smiliestrans as $smiley => $img) {
    264     $b2_smiliessearch[] = $smiley;
     263foreach($wpsmiliestrans as $smiley => $img) {
     264    $wp_smiliessearch[] = $smiley;
    265265    $smiley_masked = '';
    266266    for ($i = 0; $i < strlen($smiley); $i = $i + 1) {
    267267        $smiley_masked .= substr($smiley, $i, 1).chr(160);
    268268    }
    269     $b2_smiliesreplace[] = "&nbsp;<img src='$smilies_directory/$img' alt='$smiley_masked' />";
     269    $wp_smiliesreplace[] = "&nbsp;<img src='$smilies_directory/$img' alt='$smiley_masked' />";
    270270}
    271271
Note: See TracChangeset for help on using the changeset viewer.