WordPress.org

Make WordPress Core

Ticket #6952: oct15-arabic-category-sorting.diff

File oct15-arabic-category-sorting.diff, 453 bytes (added by jeremyclarke, 6 years ago)

updated patch to fix sorting

  • wp-includes/taxonomy.php

     
    748748                        } 
    749749                } 
    750750        } 
     751         
     752        // Resort by name in PHP in case SQL didn't (for non-latin alphabets) 
     753        if ( 'name' == $args['orderby'] )  
     754                usort( $terms, '_usort_terms_by_name' ); 
     755         
    751756        reset ( $terms ); 
    752757 
    753758        wp_cache_add( $cache_key, $terms, 'terms' );