Ticket #15480: 15480.diff

File 15480.diff, 635 bytes (added by batmoo, 3 years ago)
  • wp-admin/js/list-table.dev.js

     
    188188        $('th a').click(function() { 
    189189                var orderby = $.query.GET('orderby'), 
    190190                        order = $.query.GET('order'), 
    191                         $th = $(this).parent('th'); 
     191                        text = $(this).text(); 
    192192 
     193                var $th = $(this).closest('table').find('th').filter(function(i) { 
     194                        return $(this).text() == text; 
     195                }); 
     196 
     197 
    193198                if ( $th.hasClass('sortable') ) { 
    194199                        orderby = $.query.load($(this).attr('href')).get('orderby'); 
    195200                        order = 'asc';