WordPress.org

Make WordPress Core

Changeset 3640


Ignore:
Timestamp:
03/14/2006 02:32:59 AM (15 years ago)
Author:
ryan
Message:

Remove smilies sort. Props random. fixes #2550

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/vars.php

    r3382 r3640  
    9393}
    9494
    95 // sorts the smilies' array
    96 if (!function_exists('smiliescmp')) {
    97 function smiliescmp ($a, $b) {
    98     if (strlen($a) == strlen($b)) {
    99         return strcmp($a, $b);
    100     }
    101         return (strlen($a) > strlen($b)) ? -1 : 1;
    102     }
    103 }
    104 uksort($wpsmiliestrans, 'smiliescmp');
    10595
    10696// generates smilies' search & replace arrays
Note: See TracChangeset for help on using the changeset viewer.