Make WordPress Core

Changeset 18814


Ignore:
Timestamp:
09/29/2011 05:09:04 PM (13 years ago)
Author:
ryan
Message:

Use _wp_tag_cloud_count_sort_cb instead of an anonymous function. Props ocean90. see #14424

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category-template.php

    r18326 r18814  
    643643            // SQL cannot save you; this is a second (potentially different) sort on a subset of data.
    644644            if ( 'name' == $orderby )
    645                 uasort( $tags, create_function('$a, $b', 'return strnatcasecmp($a->name, $b->name);') );
     645                uasort( $tags, '_wp_tag_cloud_name_sort_cb' );
    646646            else
    647                 uasort( $tags, create_function('$a, $b', 'return ($a->count > $b->count);') );
     647                uasort( $tags, '_wp_tag_cloud_count_sort_cb' );
    648648
    649649            if ( 'DESC' == $order )
Note: See TracChangeset for help on using the changeset viewer.