Update TinyMCE Spellchecker plugin to 2.0.6.1.

git-svn-id: https://develop.svn.wordpress.org/trunk@22917 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-11-29 02:45:16 +00:00
parent 1119f34331
commit 3861f2bd9e

View File

@ -50,7 +50,9 @@ class GoogleSpell extends SpellChecker {
return $osug;
}
function &_getMatches($lang, $str) {
protected function &_getMatches($lang, $str) {
$lang = preg_replace('/[^a-z\-]/i', '', $lang);
$str = preg_replace('/[\x00-\x1F\x7F]/', '', $str);
$server = "www.google.com";
$port = 443;
$path = "/tbproxy/spell?lang=" . $lang . "&hl=en";
@ -105,7 +107,7 @@ class GoogleSpell extends SpellChecker {
return $matches;
}
function _unhtmlentities($string) {
protected function _unhtmlentities($string) {
$string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $string);
$string = preg_replace('~&#([0-9]+);~e', 'chr(\\1)', $string);