Remove smilies sort. Props random. fixes #2550
git-svn-id: http://svn.automattic.com/wordpress/trunk@3640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9303053d39
commit
5b10d4b1e0
|
@ -92,16 +92,6 @@ if (!isset($wpsmiliestrans)) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// sorts the smilies' array
|
|
||||||
if (!function_exists('smiliescmp')) {
|
|
||||||
function smiliescmp ($a, $b) {
|
|
||||||
if (strlen($a) == strlen($b)) {
|
|
||||||
return strcmp($a, $b);
|
|
||||||
}
|
|
||||||
return (strlen($a) > strlen($b)) ? -1 : 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
uksort($wpsmiliestrans, 'smiliescmp');
|
|
||||||
|
|
||||||
// generates smilies' search & replace arrays
|
// generates smilies' search & replace arrays
|
||||||
foreach($wpsmiliestrans as $smiley => $img) {
|
foreach($wpsmiliestrans as $smiley => $img) {
|
||||||
|
|
Loading…
Reference in New Issue