| @@ -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 | } |
| @@ -130,8 +127,9 @@ | ||
| 130 | 127 | '<span class="icon-default-lang"><span class="screen-reader-text">%1$s</span></span>', |
| 131 | 128 | /* translators: accessibility text */ |
| 132 | 129 | esc_html__( 'Default language', 'polylang' ) |
| 133 | 130 | ); |
| 131 | + $actions = array(); | |
| 134 | 132 | } |
| 135 | 133 | |
| 136 | 134 | return $s; |
| 137 | 135 | } |
| @@ -236,9 +234,9 @@ | ||
| 236 | 234 | * @param object $b The second object to compare |
| 237 | 235 | * @return int -1 or 1 if $a is considered to be respectively less than or greater than $b. |
| 238 | 236 | */ |
| 239 | 237 | protected function usort_reorder( $a, $b ) { |
| 240 | - $orderby = ! empty( $_GET['orderby'] ) ? sanitize_key( $_GET['orderby'] ) : 'name'; // phpcs:ignore WordPress.Security.NonceVerification | |
| 238 | + $orderby = ! empty( $_GET['orderby'] ) ? $_GET['orderby'] : 'name'; | |
| 241 | 239 | // Determine sort order |
| 242 | 240 | if ( is_numeric( $a->$orderby ) ) { |
| 243 | 241 | $result = $a->$orderby > $b->$orderby ? 1 : -1; |
| 244 | 242 | } else { |
| @@ -244,9 +242,9 @@ | ||
| 244 | 242 | } else { |
| 245 | 243 | $result = strcmp( $a->$orderby, $b->$orderby ); |
| 246 | 244 | } |
| 247 | 245 | // Send final sort direction to usort |
| 248 | - return ( empty( $_GET['order'] ) || 'asc' === $_GET['order'] ) ? $result : -$result; // phpcs:ignore WordPress.Security.NonceVerification | |
| 246 | + return ( empty( $_GET['order'] ) || 'asc' == $_GET['order'] ) ? $result : -$result; | |
| 249 | 247 | } |
| 250 | 248 | |
| 251 | 249 | /** |
| 252 | 250 | * Prepares the list of items for displaying |