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