Make WordPress Core


Ignore:
Timestamp:
12/20/2014 10:46:53 PM (10 years ago)
Author:
wonderboymusic
Message:

For clarity, initialize some arrays that previously were only assigned via short circuit in loops.

See #30799.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r30766 r30982  
    10231023        $string = strtr($string, $chars);
    10241024    } else {
     1025        $chars = array();
    10251026        // Assume ISO-8859-1 if not UTF-8
    10261027        $chars['in'] = chr(128).chr(131).chr(138).chr(142).chr(154).chr(158)
     
    10381039
    10391040        $string = strtr($string, $chars['in'], $chars['out']);
     1041        $double_chars = array();
    10401042        $double_chars['in'] = array(chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254));
    10411043        $double_chars['out'] = array('OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th');
Note: See TracChangeset for help on using the changeset viewer.