Make WordPress Core

Ticket #16908: 16908.patch

File 16908.patch, 982 bytes (added by hakre, 14 years ago)

latin-1, part I

  • wp-includes/formatting.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    668668                $chars['out'] = "EfSZszYcYuAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy";
    669669
    670670                $string = strtr($string, $chars['in'], $chars['out']);
    671                 $double_chars['in'] = array(chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254));
    672                 $double_chars['out'] = array('OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th');
    673                 $string = str_replace($double_chars['in'], $double_chars['out'], $string);
     671                $double_chars = array(
     672                chr(140) => 'OE', chr(156) => 'oe',
     673                chr(198) => 'AE', chr(208) => 'DH',
     674                chr(222) => 'TH', chr(223) => 'ss',
     675                chr(230) => 'ae', chr(240) => 'dh',
     676                chr(254) => 'th');
     677                $string = strtr($string, $double_chars);
    674678        }
    675679
    676680        return $string;