Make WordPress Core


Ignore:
Timestamp:
12/23/2004 12:08:43 AM (21 years ago)
Author:
saxmatt
Message:

Clean up global ideas from michel_v

File:
1 edited

Legend:

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

    r1974 r1994  
    33/* This file sets various arrays and variables for use in WordPress */
    44require(ABSPATH . 'wp-includes/version.php');
    5 
    6 # Translation of invalid Unicode references range to valid range
    7 $wp_htmltranswinuni = array(
    8     '€' => '€', // the Euro sign
    9     '' => '',
    10     '‚' => '‚', // these are Windows CP1252 specific characters
    11     'ƒ' => 'ƒ',  // they would look weird on non-Windows browsers
    12     '„' => '„',
    13     '…' => '…',
    14     '†' => '†',
    15     '‡' => '‡',
    16     'ˆ' => 'ˆ',
    17     '‰' => '‰',
    18     'Š' => 'Š',
    19     '‹' => '‹',
    20     'Œ' => 'Œ',
    21     '' => '',
    22     'Ž' => 'ž',
    23     '' => '',
    24     '' => '',
    25     '‘' => '‘',
    26     '’' => '’',
    27     '“' => '“',
    28     '”' => '”',
    29     '•' => '•',
    30     '–' => '–',
    31     '—' => '—',
    32     '˜' => '˜',
    33     '™' => '™',
    34     'š' => 'š',
    35     '›' => '›',
    36     'œ' => 'œ',
    37     '' => '',
    38     'ž' => '',
    39     'Ÿ' => 'Ÿ'
    40     );
    415
    426// On which page are we ?
     
    7539}
    7640$is_IE    = (($is_macIE) || ($is_winIE));
    77 
    78 // browser-specific javascript corrections
    79 $wp_macIE_correction['in'] = array(
    80     '/\%uFFD4/', '/\%uFFD5/', '/\%uFFD2/', '/\%uFFD3/',
    81     '/\%uFFA5/', '/\%uFFD0/', '/\%uFFD1/', '/\%uFFBD/',
    82     '/\%uFF83%uFFC0/', '/\%uFF83%uFFC1/', '/\%uFF83%uFFC6/', '/\%uFF83%uFFC9/',
    83     '/\%uFFB9/', '/\%uFF81%uFF8C/', '/\%uFF81%uFF8D/', '/\%uFF81%uFFDA/',
    84     '/\%uFFDB/'
    85 );
    86 $wp_macIE_correction['out'] = array(
    87     '‘', '’', '“', '”',
    88     '•', '–', '—', 'Ω',
    89     'β', 'γ', 'θ', 'λ',
    90     'π', '′', '″', '∠',
    91     '€'
    92 );
    93 $wp_gecko_correction['in'] = array(
    94     '/\‘/', '/\’/', '/\“/', '/\”/',
    95     '/\•/', '/\–/', '/\—/', '/\Ω/',
    96     '/\β/', '/\γ/', '/\θ/', '/\λ/',
    97     '/\π/', '/\′/', '/\″/', '/\/',
    98     '/\€/', '/\ /'
    99 );
    100 $wp_gecko_correction['out'] = array(
    101     '&8216;', '’', '“', '”',
    102     '•', '–', '—', 'Ω',
    103     'β', 'γ', 'θ', 'λ',
    104     'π', '′', '″', '∠',
    105     '€', ' '
    106 );
    10741
    10842// Server detection
Note: See TracChangeset for help on using the changeset viewer.