PluginProbe
Polylang / 2.5
Polylang v2.5
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 -2 2.72.5 View file →
@@ -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