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:
ryan 2006-03-14 02:32:59 +00:00
parent 9303053d39
commit 5b10d4b1e0
1 changed files with 0 additions and 10 deletions

View File

@ -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) {