WordPress.org

Make WordPress Core

Ticket #20016: patch-spell-encoding.diff

File patch-spell-encoding.diff, 610 bytes (added by koke, 4 years ago)

Patch to avoid double utf8 encoding

  • wp-includes/js/tinymce/plugins/spellchecker/classes/GoogleSpell.php

     
    3939                $matches = $this->_getMatches($lang, $word); 
    4040 
    4141                if (count($matches) > 0) 
    42                         $sug = explode("\t", utf8_encode($this->_unhtmlentities($matches[0][4]))); 
     42                        $sug = explode("\t", $this->_unhtmlentities($matches[0][4])); 
    4343 
    4444                // Remove empty 
    4545                foreach ($sug as $item) {