PluginProbe
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP / 1.2.32
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP v1.2.32
1.2.77 1.2.76 1.2.75 1.2.74 1.2.73 1.2.72 1.2.71 1.2.70 1.2.69 1.2.68 1.2.67 1.2.66 1.2.65 1.2.64 1.2.63 trunk 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 All 177 releases
← All changes | admin/settings/class-uwp-settings-user-sorting.php +1 -18 1.2.68 → 1.2.32 View file →
@@ -14,9 +14,9 @@
14 14
15 15 if ( ! class_exists( 'UsersWP_Settings_User_Sorting', false ) ) {
16 16
17 17 /**
18 - * UsersWP_Settings_User_Sorting.
18 + * UsersWP_Settings_Email.
19 19 */
20 20 class UsersWP_Settings_User_Sorting {
21 21
22 22 public function __construct() {
@@ -99,15 +99,8 @@
99 99 }
100 100 }
101 101 }
102 102
103 - if ( is_uwp_users_page() && !empty($_GET['uwp_sort_by']) ) {
104 - if ($_GET['uwp_sort_by'] === 'random_asc' || $_GET['uwp_sort_by'] === 'random_desc') {
105 - // Random order
106 - $vars->query_orderby = 'ORDER BY RAND()';
107 - }
108 - }
109 -
110 103 return $vars;
111 104 }
112 105
113 106 /**
@@ -302,18 +295,8 @@
302 295 'field_icon' => 'fas fa-sort-alpha-up',
303 296 'sort' => 'asc',
304 297 'description' => __( 'Sort alphabetically by last name in ascending order', 'userswp' ),
305 298 );
306 -
307 - $fields['random'] = array(
308 - 'data_type' => '',
309 - 'field_type' => 'text',
310 - 'site_title' => __( 'Random', 'userswp' ),
311 - 'htmlvar_name' => 'random',
312 - 'field_icon' => 'fa-solid fa-shuffle',
313 - 'sort' => '',
314 - 'description' => __( 'Sort users by random', 'userswp' )
315 - );
316 299
317 300 $fields = apply_filters( 'uwp_add_custom_sort_options', $fields );
318 301
319 302 ?>