Ticket #45089: 45089.patch
File 45089.patch, 923 bytes (added by , 6 years ago) |
---|
-
src/wp-admin/includes/class-wp-list-table.php
1126 1126 $class[] = 'sorted'; 1127 1127 $class[] = $current_order; 1128 1128 } else { 1129 $order = $desc_first ? 'desc' : 'asc'; 1129 if( in_array( strtolower($desc_first), array('desc', 'asc'), true ) ) 1130 $order = strtolower( $desc_first ); 1131 else 1132 $order = $desc_first ? 'desc' : 'asc'; 1130 1133 $class[] = 'sortable'; 1131 $class[] = $ desc_first? 'asc' : 'desc';1134 $class[] = $order === 'desc' ? 'asc' : 'desc'; 1132 1135 } 1133 1136 1134 1137 $column_display_name = '<a href="' . esc_url( add_query_arg( compact( 'orderby', 'order' ), $current_url ) ) . '"><span>' . $column_display_name . '</span><span class="sorting-indicator"></span></a>';