| @@ -1,8 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -/** | |
| 3 | - * @package Polylang | |
| 4 | - */ | |
| 5 | 2 | |
| 6 | 3 | if ( ! class_exists( 'WP_List_Table' ) ) { |
| 7 | 4 | require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php'; // since WP 3.1 |
| 8 | 5 | } |
| @@ -167,16 +164,8 @@ | ||
| 167 | 164 | * @param array $items |
| 168 | 165 | */ |
| 169 | 166 | public function prepare_items( $items = array() ) { |
| 170 | 167 | $this->_column_headers = array( $this->get_columns(), array(), $this->get_sortable_columns(), $this->get_primary_column_name() ); |
| 171 | - | |
| 172 | - // Sort rows, lowest priority on top. | |
| 173 | - usort( | |
| 174 | - $items, | |
| 175 | - function( $a, $b ) { | |
| 176 | - return $a->priority > $b->priority ? 1 : -1; | |
| 177 | - } | |
| 178 | - ); | |
| 179 | 168 | $this->items = $items; |
| 180 | 169 | } |
| 181 | 170 | |
| 182 | 171 | /** |