PluginProbe
Polylang / 2.5.2
Polylang v2.5.2
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | settings/table-languages.php +3 -5 2.92.5.2 View file →
@@ -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