Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/plugins/spellchecker/classes/utils/JSON.php

    r16929 r6632  
    533533                            $output .= sprintf('\u%04s', bin2hex($this->_utf82utf16($char)));
    534534                        } if (($byte & 0xF8) == 0xF0) {
    535                             $char = pack('C*', $byte, ord($input[$i + 1]), ord($input[$i + 2]), ord($input[$i + 3]));
     535                            $char = pack('C*', $byte, ord($input[$i + 1]), ord($input[$i + 2], ord($input[$i + 3])));
    536536                            $i += 3;
    537537                            $output .= sprintf('\u%04s', bin2hex($this->_utf82utf16($char)));
    538538                        } if (($byte & 0xFC) == 0xF8) {
    539                             $char = pack('C*', $byte, ord($input[$i + 1]), ord($input[$i + 2]), ord($input[$i + 3]), ord($input[$i + 4]));
     539                            $char = pack('C*', $byte, ord($input[$i + 1]), ord($input[$i + 2], ord($input[$i + 3]), ord($input[$i + 4])));
    540540                            $i += 4;
    541541                            $output .= sprintf('\u%04s', bin2hex($this->_utf82utf16($char)));
    542542                        } if (($byte & 0xFE) == 0xFC) {
    543                             $char = pack('C*', $byte, ord($input[$i + 1]), ord($input[$i + 2]), ord($input[$i + 3]), ord($input[$i + 4]), ord($input[$i + 5]));
     543                            $char = pack('C*', $byte, ord($input[$i + 1]), ord($input[$i + 2], ord($input[$i + 3]), ord($input[$i + 4]), ord($input[$i + 5])));
    544544                            $i += 5;
    545545                            $output .= sprintf('\u%04s', bin2hex($this->_utf82utf16($char)));
Note: See TracChangeset for help on using the changeset viewer.