Remove smilies sort. Props random. fixes #2550
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
033a947a4c
commit
4d999b3f51
|
@ -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
|
||||
foreach($wpsmiliestrans as $smiley => $img) {
|
||||
|
|
Loading…
Reference in New Issue