Ultimate Member – User Profile & Membership Plugin - Version 1.0.59

Version Description

Download this release

Release Info

Developer ultimatemember
Plugin Icon 128x128 Ultimate Member – User Profile & Membership Plugin
Version 1.0.59
Comparing to
See all releases

Code changes from version 1.0.58 to 1.0.59

admin/assets/css/um-admin-columns.css CHANGED
@@ -17,10 +17,6 @@
17
.um-admin.post-type-um_role .manage-column.column-count {width: 150px}
18
.um-admin.post-type-um_role .manage-column.column-core {width: 150px}
19
20
- .um-admin.users-php .manage-column.column-username {width: 300px}
21
- .um-admin.users-php .manage-column.column-um_role {width: 140px}
22
- .um-admin.users-php .manage-column.column-um_status {width: 160px}
23
-
24
.um-admin.users-php .tablenav.top .bulkactions,
25
.um-admin.users-php .tablenav.bottom .bulkactions{display:none}
26
17
.um-admin.post-type-um_role .manage-column.column-count {width: 150px}
18
.um-admin.post-type-um_role .manage-column.column-core {width: 150px}
19
20
.um-admin.users-php .tablenav.top .bulkactions,
21
.um-admin.users-php .tablenav.bottom .bulkactions{display:none}
22
admin/core/um-admin-users.php CHANGED
@@ -317,14 +317,7 @@ class UM_Admin_Users {
317
318
$admin = new UM_Admin_Metabox();
319
320
- unset($columns['posts']);
321
- unset($columns['email']);
322
-
323
$columns['um_role'] = __('Community Role','ultimatemember') . $admin->_tooltip( __('This is the membership role set by Ultimate Member plugin','ultimatemember') );
324
-
325
- $columns['role'] = __('WordPress Role','ultimatemember') . $admin->_tooltip( __('This is the membership role set by WordPress','ultimatemember') );
326
-
327
- $columns['um_status'] = __('Status','ultimatemember') . $admin->_tooltip( __('This is current user status in your membership site','ultimatemember') );
328
329
return $columns;
330
}
@@ -333,21 +326,8 @@ class UM_Admin_Users {
333
*** @show user columns
334
***/
335
function manage_users_custom_column($value, $column_name, $user_id) {
336
-
337
global $ultimatemember;
338
339
- if ( 'um_status' == $column_name ) {
340
-
341
- um_fetch_user( $user_id );
342
- if ( um_user('account_status') == 'approved' ) {
343
- $output = '<span class="um-admin-tag small approved">'.um_user('account_status_name').'</span>';
344
- } else {
345
- $output = '<span class="um-admin-tag small pending">'.um_user('account_status_name').'</span>';
346
- }
347
- return $output;
348
-
349
- }
350
-
351
if ( $this->custom_role == $column_name ) {
352
353
um_fetch_user( $user_id );
317
318
$admin = new UM_Admin_Metabox();
319
320
$columns['um_role'] = __('Community Role','ultimatemember') . $admin->_tooltip( __('This is the membership role set by Ultimate Member plugin','ultimatemember') );
321
322
return $columns;
323
}
326
*** @show user columns
327
***/
328
function manage_users_custom_column($value, $column_name, $user_id) {
329
global $ultimatemember;
330
331
if ( $this->custom_role == $column_name ) {
332
333
um_fetch_user( $user_id );
core/um-actions-account.php CHANGED
@@ -58,26 +58,26 @@
58
global $ultimatemember;
59
60
if ( strlen(trim( $_POST['first_name'] ) ) == 0 ) {
61
- $ultimatemember->form->add_error('first_name', 'You must provide your first name');
62
}
63
64
if ( strlen(trim( $_POST['last_name'] ) ) == 0 ) {
65
- $ultimatemember->form->add_error('last_name', 'You must provide your last name');
66
}
67
68
if ( strlen(trim( $_POST['user_email'] ) ) == 0 ) {
69
- $ultimatemember->form->add_error('user_email', 'You must provide your e-mail');
70
}
71
72
if ( !is_email( $_POST['user_email'] ) ) {
73
- $ultimatemember->form->add_error('user_email', 'Please provide a valid e-mail');
74
}
75
76
$ultimatemember->account->current_tab = 'general';
77
78
if ( $_POST['current_user_password'] != '' ) {
79
if ( !wp_check_password( $_POST['current_user_password'], um_user('user_pass'), um_user('ID') ) ) {
80
- $ultimatemember->form->add_error('current_user_password', 'This is not your password');
81
$ultimatemember->account->current_tab = 'password';
82
} else { // correct password
83
@@ -108,10 +108,10 @@
108
109
if ( isset($_POST['um_account_submit']) && $_POST['um_account_submit'] == __('Delete Account','ultimatemember') ) {
110
if ( strlen(trim( $_POST['single_user_password'] ) ) == 0 ) {
111
- $ultimatemember->form->add_error('single_user_password', 'You must enter your password');
112
} else {
113
if ( !wp_check_password( $_POST['single_user_password'], um_user('user_pass'), um_user('ID') ) ) {
114
- $ultimatemember->form->add_error('single_user_password', 'This is not your password');
115
}
116
}
117
$ultimatemember->account->current_tab = 'delete';
58
global $ultimatemember;
59
60
if ( strlen(trim( $_POST['first_name'] ) ) == 0 ) {
61
+ $ultimatemember->form->add_error('first_name', __('You must provide your first name','ultimatemember') );
62
}
63
64
if ( strlen(trim( $_POST['last_name'] ) ) == 0 ) {
65
+ $ultimatemember->form->add_error('last_name', __('You must provide your last name','ultimatemember') );
66
}
67
68
if ( strlen(trim( $_POST['user_email'] ) ) == 0 ) {
69
+ $ultimatemember->form->add_error('user_email', __('You must provide your e-mail','ultimatemember') );
70
}
71
72
if ( !is_email( $_POST['user_email'] ) ) {
73
+ $ultimatemember->form->add_error('user_email', __('Please provide a valid e-mail','ultimatemember') );
74
}
75
76
$ultimatemember->account->current_tab = 'general';
77
78
if ( $_POST['current_user_password'] != '' ) {
79
if ( !wp_check_password( $_POST['current_user_password'], um_user('user_pass'), um_user('ID') ) ) {
80
+ $ultimatemember->form->add_error('current_user_password', __('This is not your password','ultimatemember') );
81
$ultimatemember->account->current_tab = 'password';
82
} else { // correct password
83
108
109
if ( isset($_POST['um_account_submit']) && $_POST['um_account_submit'] == __('Delete Account','ultimatemember') ) {
110
if ( strlen(trim( $_POST['single_user_password'] ) ) == 0 ) {
111
+ $ultimatemember->form->add_error('single_user_password', __('You must enter your password','ultimatemember') );
112
} else {
113
if ( !wp_check_password( $_POST['single_user_password'], um_user('user_pass'), um_user('ID') ) ) {
114
+ $ultimatemember->form->add_error('single_user_password', __('This is not your password','ultimatemember') );
115
}
116
}
117
$ultimatemember->account->current_tab = 'delete';
core/um-members.php CHANGED
@@ -148,7 +148,7 @@ class UM_Members {
148
149
$array['total_users'] = (isset( $max_users ) && $max_users && $max_users <= $users->total_users ) ? $max_users : $users->total_users;
150
151
- $array['page'] = get_query_var('members_page') ? get_query_var('members_page') : 1;
152
153
$array['total_pages'] = ceil( $array['total_users'] / $profiles_per_page );
154
148
149
$array['total_users'] = (isset( $max_users ) && $max_users && $max_users <= $users->total_users ) ? $max_users : $users->total_users;
150
151
+ $array['page'] = isset($_REQUEST['members_page']) ? $_REQUEST['members_page'] : 1;
152
153
$array['total_pages'] = ceil( $array['total_users'] / $profiles_per_page );
154
core/um-permalinks.php CHANGED
@@ -34,7 +34,7 @@ class UM_Permalinks {
34
global $post;
35
36
if ( is_front_page() ) :
37
- $page_url = home_url();
38
else :
39
$page_url = 'http';
40
34
global $post;
35
36
if ( is_front_page() ) :
37
+ $page_url = home_url() . $_SERVER["REQUEST_URI"];
38
else :
39
$page_url = 'http';
40
core/um-rewrite.php CHANGED
@@ -22,7 +22,6 @@ class UM_Rewrite {
22
$public_query_vars[] = 'um_tab';
23
$public_query_vars[] = 'profiletab';
24
$public_query_vars[] = 'subnav';
25
- $public_query_vars[] = 'members_page';
26
return $public_query_vars;
27
}
28
22
$public_query_vars[] = 'um_tab';
23
$public_query_vars[] = 'profiletab';
24
$public_query_vars[] = 'subnav';
25
return $public_query_vars;
26
}
27
core/um-setup.php CHANGED
@@ -379,13 +379,12 @@ class UM_Setup {
379
380
$users = get_users( array('fields' => 'ID') );
381
foreach( $users as $id ) {
382
-
383
- if ( !get_user_meta( $id, 'account_status', true ) ) {
384
- update_user_meta( $id, 'account_status', 'approved' );
385
- }
386
-
387
delete_user_meta( $id, 'role' );
388
389
if ( !is_super_admin( $id ) ) {
390
if ( is_numeric( $id ) ) {
391
update_user_meta( $id, 'role', 'member' );
379
380
$users = get_users( array('fields' => 'ID') );
381
foreach( $users as $id ) {
382
+
383
+ delete_user_meta( $id, 'account_status' );
384
delete_user_meta( $id, 'role' );
385
386
+ update_user_meta( $id, 'account_status', 'approved' );
387
+
388
if ( !is_super_admin( $id ) ) {
389
if ( is_numeric( $id ) ) {
390
update_user_meta( $id, 'role', 'member' );
index.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Ultimate Member
4
Plugin URI: http://ultimatemember.com/
5
Description: Ultimate Member is a powerful community and membership plugin that allows you to create beautiful community and membership sites with WordPress
6
- Version: 1.0.58
7
Author: Ultimate Member
8
Author URI: http://ultimatemember.com/
9
*/
3
Plugin Name: Ultimate Member
4
Plugin URI: http://ultimatemember.com/
5
Description: Ultimate Member is a powerful community and membership plugin that allows you to create beautiful community and membership sites with WordPress
6
+ Version: 1.0.59
7
Author: Ultimate Member
8
Author URI: http://ultimatemember.com/
9
*/
readme.txt CHANGED
@@ -7,7 +7,7 @@ Tags: access control, author, authors, author profile, comments, community, comm
7
Requires at least: 4.1
8
Tested up to: 4.1
9
10
- Stable Tag: 1.0.58
11
12
License: GNU Version 2 or Any Later Version
13
@@ -128,6 +128,7 @@ Ultimate Member has been translated into the following languages:
128
* Italiano
129
* Deutsch
130
* Nederlands
131
* Türkçe
132
133
== Installation ==
@@ -187,6 +188,12 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
187
188
== Changelog ==
189
190
= 1.0.58: February 16, 2015 =
191
192
* Fixed: display name as search field in member directory
7
Requires at least: 4.1
8
Tested up to: 4.1
9
10
+ Stable Tag: 1.0.59
11
12
License: GNU Version 2 or Any Later Version
13
128
* Italiano
129
* Deutsch
130
* Nederlands
131
+ * Finnish
132
* Türkçe
133
134
== Installation ==
188
189
== Changelog ==
190
191
+ = 1.0.59: February 17, 2015 =
192
+
193
+ * New added Finnish language (fi_FI)
194
+ * Tweak: show e-mail column in users backend
195
+ * Fixed: issue with showing members directory on frontpage
196
+
197
= 1.0.58: February 16, 2015 =
198
199
* Fixed: display name as search field in member directory
um-init.php CHANGED
@@ -21,6 +21,7 @@ class UM_API {
21
'it_IT' => 'Italiano',
22
'de_DE' => 'Deutsch',
23
'nl_NL' => 'Nederlands',
24
'tr_TR' => 'Türkçe',
25
);
26
21
'it_IT' => 'Italiano',
22
'de_DE' => 'Deutsch',
23
'nl_NL' => 'Nederlands',
24
+ 'fi_FI' => 'Finnish',
25
'tr_TR' => 'Türkçe',
26
);
27