mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-26 02:57:45 +01:00
Update TinyMCE Spellchecker plugin to 2.0.6.1.
git-svn-id: http://core.svn.wordpress.org/trunk@22917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ef662a5822
commit
818e2f3980
@ -50,7 +50,9 @@ class GoogleSpell extends SpellChecker {
|
|||||||
return $osug;
|
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";
|
$server = "www.google.com";
|
||||||
$port = 443;
|
$port = 443;
|
||||||
$path = "/tbproxy/spell?lang=" . $lang . "&hl=en";
|
$path = "/tbproxy/spell?lang=" . $lang . "&hl=en";
|
||||||
@ -105,7 +107,7 @@ class GoogleSpell extends SpellChecker {
|
|||||||
return $matches;
|
return $matches;
|
||||||
}
|
}
|
||||||
|
|
||||||
function _unhtmlentities($string) {
|
protected function _unhtmlentities($string) {
|
||||||
$string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $string);
|
$string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $string);
|
||||||
$string = preg_replace('~&#([0-9]+);~e', 'chr(\\1)', $string);
|
$string = preg_replace('~&#([0-9]+);~e', 'chr(\\1)', $string);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user