mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Clean up global ideas from michel_v
git-svn-id: https://develop.svn.wordpress.org/trunk@1994 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3,42 +3,6 @@
|
||||
/* This file sets various arrays and variables for use in WordPress */
|
||||
require(ABSPATH . 'wp-includes/version.php');
|
||||
|
||||
# Translation of invalid Unicode references range to valid range
|
||||
$wp_htmltranswinuni = array(
|
||||
'€' => '€', // the Euro sign
|
||||
'' => '',
|
||||
'‚' => '‚', // these are Windows CP1252 specific characters
|
||||
'ƒ' => 'ƒ', // they would look weird on non-Windows browsers
|
||||
'„' => '„',
|
||||
'…' => '…',
|
||||
'†' => '†',
|
||||
'‡' => '‡',
|
||||
'ˆ' => 'ˆ',
|
||||
'‰' => '‰',
|
||||
'Š' => 'Š',
|
||||
'‹' => '‹',
|
||||
'Œ' => 'Œ',
|
||||
'' => '',
|
||||
'Ž' => 'ž',
|
||||
'' => '',
|
||||
'' => '',
|
||||
'‘' => '‘',
|
||||
'’' => '’',
|
||||
'“' => '“',
|
||||
'”' => '”',
|
||||
'•' => '•',
|
||||
'–' => '–',
|
||||
'—' => '—',
|
||||
'˜' => '˜',
|
||||
'™' => '™',
|
||||
'š' => 'š',
|
||||
'›' => '›',
|
||||
'œ' => 'œ',
|
||||
'' => '',
|
||||
'ž' => '',
|
||||
'Ÿ' => 'Ÿ'
|
||||
);
|
||||
|
||||
// On which page are we ?
|
||||
$PHP_SELF = $_SERVER['PHP_SELF'];
|
||||
if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) {
|
||||
@@ -75,36 +39,6 @@ if (preg_match('/Lynx/', $HTTP_USER_AGENT)) {
|
||||
}
|
||||
$is_IE = (($is_macIE) || ($is_winIE));
|
||||
|
||||
// browser-specific javascript corrections
|
||||
$wp_macIE_correction['in'] = array(
|
||||
'/\%uFFD4/', '/\%uFFD5/', '/\%uFFD2/', '/\%uFFD3/',
|
||||
'/\%uFFA5/', '/\%uFFD0/', '/\%uFFD1/', '/\%uFFBD/',
|
||||
'/\%uFF83%uFFC0/', '/\%uFF83%uFFC1/', '/\%uFF83%uFFC6/', '/\%uFF83%uFFC9/',
|
||||
'/\%uFFB9/', '/\%uFF81%uFF8C/', '/\%uFF81%uFF8D/', '/\%uFF81%uFFDA/',
|
||||
'/\%uFFDB/'
|
||||
);
|
||||
$wp_macIE_correction['out'] = array(
|
||||
'‘', '’', '“', '”',
|
||||
'•', '–', '—', 'Ω',
|
||||
'β', 'γ', 'θ', 'λ',
|
||||
'π', '′', '″', '∠',
|
||||
'€'
|
||||
);
|
||||
$wp_gecko_correction['in'] = array(
|
||||
'/\‘/', '/\’/', '/\“/', '/\”/',
|
||||
'/\•/', '/\–/', '/\—/', '/\Ω/',
|
||||
'/\β/', '/\γ/', '/\θ/', '/\λ/',
|
||||
'/\π/', '/\′/', '/\″/', '/\/',
|
||||
'/\€/', '/\ /'
|
||||
);
|
||||
$wp_gecko_correction['out'] = array(
|
||||
'&8216;', '’', '“', '”',
|
||||
'•', '–', '—', 'Ω',
|
||||
'β', 'γ', 'θ', 'λ',
|
||||
'π', '′', '″', '∠',
|
||||
'€', ' '
|
||||
);
|
||||
|
||||
// Server detection
|
||||
$is_apache = strstr($_SERVER['SERVER_SOFTWARE'], 'Apache') ? 1 : 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user