Remove smilies sort. Props random. fixes #2550
git-svn-id: https://develop.svn.wordpress.org/trunk@3640 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e2108969c4
commit
9f23849f9c
@ -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
Block a user