Ultimate Member – User Profile & Membership Plugin - Version 1.3.72

Version Description

Download this release

Release Info

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

Code changes from version 1.3.71 to 1.3.72

addons/generate_random_users.php CHANGED
@@ -51,10 +51,21 @@ class UM_ADDON_generate_random_users {
51
  $json_url = add_query_arg('results', $total_users, $json_url );
52
  $arr_post_header['results'] = $total_users;
53
  }
 
 
 
 
54
 
55
- $response = file_get_contents( $json_url );
56
- $json = json_decode( $response );
57
-
 
 
 
 
 
 
 
58
  if( ! empty( $json ) ){
59
 
60
  remove_action('um_after_new_user_register', 'um_after_new_user_register', 10, 2);
51
  $json_url = add_query_arg('results', $total_users, $json_url );
52
  $arr_post_header['results'] = $total_users;
53
  }
54
+
55
+
56
+ $response = wp_remote_get( $json_url, array('timeout' => 120 ) );
57
+ $json = '';
58
 
59
+ if( is_array($response) ) {
60
+ if( isset( $response['body'] ) && ! empty( $response['body'] ) ){
61
+ $json = json_decode( $response['body'] );
62
+ }
63
+ }
64
+
65
+ if( is_wp_error( $response ) ){
66
+ wp_die( $response->get_error_message() );
67
+ }
68
+
69
  if( ! empty( $json ) ){
70
 
71
  remove_action('um_after_new_user_register', 'um_after_new_user_register', 10, 2);
admin/assets/css/um-admin-global.css CHANGED
@@ -86,4 +86,5 @@
86
  opacity: 0.8;
87
  }
88
  .um-admin-tip.n {margin-left: 5px}
89
- .um-admin-tip i {cursor: pointer; vertical-align: middle; font-size: 20px; line-height: 20px;color: #3ba1da !important;}
 
86
  opacity: 0.8;
87
  }
88
  .um-admin-tip.n {margin-left: 5px}
89
+ .um-admin-tip i {cursor: pointer; vertical-align: middle; font-size: 20px; line-height: 20px;color: #3ba1da !important;}
90
+ a.um-delete{ color: #a00; }
admin/core/um-admin-dashboard.php CHANGED
@@ -68,7 +68,7 @@ class UM_Admin_Dashboard {
68
  */
69
  function get_pending_users_count() {
70
 
71
- if ( get_option('um_cached_users_queue') > 0 ) {
72
  return get_option('um_cached_users_queue');
73
  }
74
 
68
  */
69
  function get_pending_users_count() {
70
 
71
+ if ( get_option('um_cached_users_queue') > 0 && ! isset( $_REQUEST['delete_count'] ) ) {
72
  return get_option('um_cached_users_queue');
73
  }
74
 
admin/core/um-admin-notices.php CHANGED
@@ -200,6 +200,10 @@ class UM_Admin_Notices {
200
  $messages[0]['content'] = __('Users have been updated.','ultimatemember');
201
  break;
202
 
 
 
 
 
203
  case 'err_users_updated':
204
  $messages[0]['err_content'] = __('Super administrators cannot be modified.','ultimatemember');
205
  $messages[1]['content'] = __('Other users have been updated.','ultimatemember');
200
  $messages[0]['content'] = __('Users have been updated.','ultimatemember');
201
  break;
202
 
203
+ case 'users_role_updated':
204
+ $messages[0]['content'] = __('Changed roles.','ultimatemember');
205
+ break;
206
+
207
  case 'err_users_updated':
208
  $messages[0]['err_content'] = __('Super administrators cannot be modified.','ultimatemember');
209
  $messages[1]['content'] = __('Other users have been updated.','ultimatemember');
admin/core/um-admin-users.php CHANGED
@@ -193,16 +193,38 @@ class UM_Admin_Users {
193
  }
194
 
195
  if ( $admin_err == 0 ){
196
- wp_redirect( admin_url('users.php?update=promote') );
 
 
 
 
 
 
 
 
197
  exit;
 
198
  } else {
199
- wp_redirect( admin_url('users.php?update=err_admin_role') );
 
 
 
 
 
 
 
 
200
  exit;
201
  }
202
 
203
  } else if ( isset($_REQUEST['um_changeit']) && $_REQUEST['um_changeit'] != '' ) {
204
 
205
- wp_redirect( admin_url('users.php') );
 
 
 
 
 
206
  exit;
207
 
208
  }
@@ -233,7 +255,15 @@ class UM_Admin_Users {
233
 
234
  // Finished. redirect now
235
  if ( $admin_err == 0 ){
236
- wp_redirect( admin_url('users.php?update=users_updated') );
 
 
 
 
 
 
 
 
237
  exit;
238
  } else {
239
  wp_redirect( admin_url('users.php?update=err_users_updated') );
@@ -242,7 +272,12 @@ class UM_Admin_Users {
242
 
243
  } else if ( isset($_REQUEST['um_bulkedit']) && $_REQUEST['um_bulkedit'] != '' ) {
244
 
245
- wp_redirect( admin_url('users.php') );
 
 
 
 
 
246
  exit;
247
 
248
  }
@@ -309,6 +344,10 @@ class UM_Admin_Users {
309
 
310
  </div>
311
 
 
 
 
 
312
  <?php
313
 
314
  }
@@ -344,4 +383,28 @@ class UM_Admin_Users {
344
  return $value;
345
  }
346
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
347
  }
193
  }
194
 
195
  if ( $admin_err == 0 ){
196
+
197
+ $uri = admin_url('users.php');
198
+
199
+ $uri = $this->set_redirect_uri( $uri );
200
+
201
+ $uri = add_query_arg( 'update', 'users_role_updated', $uri );
202
+
203
+ wp_redirect( $uri );
204
+
205
  exit;
206
+
207
  } else {
208
+
209
+ $uri = admin_url('users.php');
210
+
211
+ $uri = $this->set_redirect_uri( $uri );
212
+
213
+ $uri = add_query_arg( 'update', 'err_admin_role', $uri );
214
+
215
+ wp_redirect( $uri );
216
+
217
  exit;
218
  }
219
 
220
  } else if ( isset($_REQUEST['um_changeit']) && $_REQUEST['um_changeit'] != '' ) {
221
 
222
+ $uri = admin_url('users.php');
223
+
224
+ $uri = $this->set_redirect_uri( $uri );
225
+
226
+ wp_redirect( $uri );
227
+
228
  exit;
229
 
230
  }
255
 
256
  // Finished. redirect now
257
  if ( $admin_err == 0 ){
258
+
259
+ $uri = admin_url('users.php');
260
+
261
+ $uri = $this->set_redirect_uri( $uri );
262
+
263
+ $uri = add_query_arg( 'update', 'users_updated', $uri );
264
+
265
+ wp_redirect( $uri );
266
+
267
  exit;
268
  } else {
269
  wp_redirect( admin_url('users.php?update=err_users_updated') );
272
 
273
  } else if ( isset($_REQUEST['um_bulkedit']) && $_REQUEST['um_bulkedit'] != '' ) {
274
 
275
+ $uri = admin_url('users.php');
276
+
277
+ $uri = $this->set_redirect_uri( $uri );
278
+
279
+ wp_redirect( $uri );
280
+
281
  exit;
282
 
283
  }
344
 
345
  </div>
346
 
347
+ <?php if( isset( $_REQUEST['status'] ) && ! empty( $_REQUEST['status'] ) ){ ?>
348
+ <input type="hidden" name="status" id="um_status" value="<?php echo esc_attr( $_REQUEST['status'] );?>"/>
349
+ <?php } ?>
350
+
351
  <?php
352
 
353
  }
383
  return $value;
384
  }
385
 
386
+ /**
387
+ * Sets redirect URI
388
+ * @param string $uri
389
+ */
390
+ function set_redirect_uri( $uri ){
391
+
392
+ if( isset( $_REQUEST['s'] ) && ! empty( $_REQUEST['s'] ) ){
393
+ $uri = add_query_arg( 's', $_REQUEST['s'], $uri );
394
+ }
395
+
396
+ if( isset( $_REQUEST['status'] ) && ! empty( $_REQUEST['status'] ) ){
397
+ $uri = add_query_arg( 'status', $_REQUEST['status'], $uri );
398
+ }
399
+
400
+ if( isset( $_REQUEST['um_filter_role'] ) && ! empty( $_REQUEST['um_filter_role'] ) ){
401
+ foreach ( $_REQUEST['um_filter_role'] as $key => $value) {
402
+ $uri = add_query_arg( 'um_filter_role', $value, $uri );
403
+ }
404
+ }
405
+
406
+ return $uri;
407
+
408
+ }
409
+
410
  }
core/um-actions-access.php CHANGED
@@ -37,6 +37,26 @@
37
  }else {
38
  $ultimatemember->access->redirect_handler = $ultimatemember->access->set_referer( $redirect, "global" );
39
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  }
41
 
42
 
@@ -537,6 +557,8 @@
537
  }
538
 
539
  $args = $ultimatemember->access->get_meta( $um_post_id );
 
 
540
  extract( $args );
541
 
542
  // Check for parent page's custom access settings
@@ -712,7 +734,7 @@
712
  }
713
  }
714
 
715
- if( um_is_core_page('user') && ! is_user_logged_in() && ! empty( $access_redirect ) ){
716
  $ultimatemember->access->allow_access = false;
717
  $access_redirect = $ultimatemember->access->set_referer( $access_redirect, "user_page" );
718
  $ultimatemember->access->redirect_handler = esc_url( $access_redirect );
37
  }else {
38
  $ultimatemember->access->redirect_handler = $ultimatemember->access->set_referer( $redirect, "global" );
39
  }
40
+
41
+ // Disallow access in homepage
42
+ if( is_front_page() || is_home() ){
43
+ $home_page_accessible = um_get_option("home_page_accessible");
44
+ if( $home_page_accessible == 0 ){
45
+ $ultimatemember->access->redirect_handler = $ultimatemember->access->set_referer( $redirect, "global" );
46
+
47
+ wp_redirect( $ultimatemember->access->redirect_handler ); exit;
48
+ }
49
+
50
+ }
51
+
52
+ // Disallow access in category pages
53
+ if( is_category() ){
54
+ $category_page_accessible = um_get_option("category_page_accessible");
55
+ if( $category_page_accessible == 0 ){
56
+ $ultimatemember->access->redirect_handler = $ultimatemember->access->set_referer( $redirect, "global" );
57
+ wp_redirect( $ultimatemember->access->redirect_handler ); exit;
58
+ }
59
+ }
60
  }
61
 
62
 
557
  }
558
 
559
  $args = $ultimatemember->access->get_meta( $um_post_id );
560
+
561
+
562
  extract( $args );
563
 
564
  // Check for parent page's custom access settings
734
  }
735
  }
736
 
737
+ if( um_is_core_page('user') && ! is_user_logged_in() && ! empty( $access_redirect ) && isset( $args['custom_access_settings'] ) && $args['custom_access_settings'] != 0 ){
738
  $ultimatemember->access->allow_access = false;
739
  $access_redirect = $ultimatemember->access->set_referer( $access_redirect, "user_page" );
740
  $ultimatemember->access->redirect_handler = esc_url( $access_redirect );
core/um-actions-form.php CHANGED
@@ -158,10 +158,34 @@
158
  $ultimatemember->form->add_error('profile_photo', sprintf(__('%s is required.','ultimatemember'), 'Profile Photo' ) );
159
  }
160
 
161
- if( isset( $fields ) && ! empty( $fields ) ){
 
162
  foreach( $fields as $key => $array ) {
163
 
164
  $array = apply_filters('um_get_custom_field_array', $array, $fields );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
 
166
  if ( isset( $array['type'] ) && $array['type'] == 'checkbox' && isset( $array['required'] ) && $array['required'] == 1 && !isset( $args[$key] ) ) {
167
  $ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimatemember'), $array['title'] ) );
158
  $ultimatemember->form->add_error('profile_photo', sprintf(__('%s is required.','ultimatemember'), 'Profile Photo' ) );
159
  }
160
 
161
+
162
+ if( isset( $fields ) && ! empty( $fields ) ){
163
  foreach( $fields as $key => $array ) {
164
 
165
  $array = apply_filters('um_get_custom_field_array', $array, $fields );
166
+
167
+ if( isset( $array ['conditions'] ) && ! empty( $array ['conditions'] ) ){
168
+
169
+ foreach( $array ['conditions'] as $condition ){
170
+
171
+ $visibility = $condition[0];
172
+ $parent_key = $condition[1];
173
+ $op = $condition[2];
174
+ $parent_value = $condition[3];
175
+
176
+ if( $visibility == 'hide' ){
177
+ if( $op == 'equals to' ){
178
+
179
+ if( $args[ $parent_key ] == $parent_value ){
180
+ continue 2;
181
+ }
182
+
183
+ }
184
+ }
185
+
186
+ }
187
+
188
+ }
189
 
190
  if ( isset( $array['type'] ) && $array['type'] == 'checkbox' && isset( $array['required'] ) && $array['required'] == 1 && !isset( $args[$key] ) ) {
191
  $ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimatemember'), $array['title'] ) );
core/um-actions-login.php CHANGED
@@ -173,8 +173,11 @@
173
  exit( wp_redirect( $args['redirect_to'] ) );
174
  }
175
 
 
 
 
176
  // Role redirect
177
- $after = um_user('after_login');
178
  switch( $after ) {
179
 
180
  case 'redirect_admin':
@@ -186,7 +189,7 @@
186
  break;
187
 
188
  case 'redirect_url':
189
- exit( wp_redirect( um_user('login_redirect_url') ) );
190
  break;
191
 
192
  case 'refresh':
173
  exit( wp_redirect( $args['redirect_to'] ) );
174
  }
175
 
176
+ $role = um_user('role');
177
+ $role_data = $ultimatemember->query->role_data( $role );
178
+
179
  // Role redirect
180
+ $after = $role_data['after_login'];
181
  switch( $after ) {
182
 
183
  case 'redirect_admin':
189
  break;
190
 
191
  case 'redirect_url':
192
+ exit( wp_redirect( $role_data['login_redirect_url'] ) );
193
  break;
194
 
195
  case 'refresh':
core/um-actions-misc.php CHANGED
@@ -4,10 +4,12 @@
4
  *** @add a force redirect to from $_get
5
  ***/
6
  add_action('um_after_form_fields', 'um_browser_url_redirect_to');
7
- function um_browser_url_redirect_to($args) {
8
 
9
  global $ultimatemember;
10
 
 
 
11
  if ( isset( $_REQUEST['redirect_to'] ) && !empty( $_REQUEST['redirect_to'] ) ) {
12
  $url = $_REQUEST['redirect_to'];
13
  echo '<input type="hidden" name="redirect_to" id="redirect_to" value="'.esc_url( $url ).'" />';
@@ -29,14 +31,19 @@
29
  break;
30
 
31
  case 'refresh':
 
32
  $url = $ultimatemember->permalinks->get_current_url();
 
33
  break;
34
 
35
  }
36
 
 
 
37
 
 
 
38
  echo '<input type="hidden" name="redirect_to" id="redirect_to" value="' . esc_url( $url ) . '" />';
39
-
40
  }
41
 
42
  }
4
  *** @add a force redirect to from $_get
5
  ***/
6
  add_action('um_after_form_fields', 'um_browser_url_redirect_to');
7
+ function um_browser_url_redirect_to( $args ) {
8
 
9
  global $ultimatemember;
10
 
11
+ $url = '';
12
+
13
  if ( isset( $_REQUEST['redirect_to'] ) && !empty( $_REQUEST['redirect_to'] ) ) {
14
  $url = $_REQUEST['redirect_to'];
15
  echo '<input type="hidden" name="redirect_to" id="redirect_to" value="'.esc_url( $url ).'" />';
31
  break;
32
 
33
  case 'refresh':
34
+
35
  $url = $ultimatemember->permalinks->get_current_url();
36
+
37
  break;
38
 
39
  }
40
 
41
+ }
42
+
43
 
44
+ $url = apply_filters('um_browser_url_redirect_to__filter', $url );
45
+ if( ! empty( $url ) ){
46
  echo '<input type="hidden" name="redirect_to" id="redirect_to" value="' . esc_url( $url ) . '" />';
 
47
  }
48
 
49
  }
core/um-actions-password.php CHANGED
@@ -7,7 +7,13 @@
7
  function um_reset_password_process_hook( $args ) {
8
  global $ultimatemember;
9
 
10
- $user = $_POST['username_b'];
 
 
 
 
 
 
11
 
12
  if ( !is_email( $user ) ) {
13
  $data = get_user_by( 'login', $user );
@@ -60,6 +66,7 @@
60
  function um_send_password_change_email( $args ){
61
 
62
  global $ultimatemember;
 
63
 
64
  um_fetch_user( $user_id );
65
 
7
  function um_reset_password_process_hook( $args ) {
8
  global $ultimatemember;
9
 
10
+ $user = null;
11
+
12
+ foreach ( $_POST as $key => $val ) {
13
+ if( strstr( $key, "username_b") ){
14
+ $user = trim( $val );
15
+ }
16
+ }
17
 
18
  if ( !is_email( $user ) ) {
19
  $data = get_user_by( 'login', $user );
66
  function um_send_password_change_email( $args ){
67
 
68
  global $ultimatemember;
69
+ extract( $args );
70
 
71
  um_fetch_user( $user_id );
72
 
core/um-actions-profile.php CHANGED
@@ -42,7 +42,7 @@
42
  *** @update user's profile
43
  ***/
44
  add_action('um_user_edit_profile', 'um_user_edit_profile', 10);
45
- function um_user_edit_profile($args){
46
 
47
  global $ultimatemember;
48
 
@@ -109,17 +109,22 @@
109
 
110
  if ( is_array( $to_update ) ) {
111
  $ultimatemember->user->update_profile( $to_update );
 
 
112
  }
113
 
 
 
114
  if ( is_array( $files ) ) {
115
  $ultimatemember->user->update_files( $files );
 
116
  }
117
 
118
- do_action('um_after_user_updated', um_user('ID') );
119
- do_action('um_after_user_upload', um_user('ID') );
120
  do_action('um_user_after_updating_profile', $to_update );
 
121
  do_action('um_update_profile_full_name', $to_update );
122
 
 
123
  if ( !isset( $args['is_signup'] ) ) {
124
  $url = $ultimatemember->permalinks->profile_url( true );
125
  exit( wp_redirect( um_edit_my_profile_cancel_uri( $url ) ) );
@@ -201,6 +206,8 @@
201
 
202
  <div class="um-cover <?php if ( um_profile('cover_photo') || ( $default_cover && $default_cover['url'] ) ) echo 'has-cover'; ?>" data-user_id="<?php echo um_profile_id(); ?>" data-ratio="<?php echo $args['cover_ratio']; ?>">
203
 
 
 
204
  <?php
205
 
206
  if ( $ultimatemember->fields->editing ) {
42
  *** @update user's profile
43
  ***/
44
  add_action('um_user_edit_profile', 'um_user_edit_profile', 10);
45
+ function um_user_edit_profile( $args ){
46
 
47
  global $ultimatemember;
48
 
109
 
110
  if ( is_array( $to_update ) ) {
111
  $ultimatemember->user->update_profile( $to_update );
112
+ do_action('um_after_user_updated', um_user('ID') );
113
+
114
  }
115
 
116
+ $files = apply_filters('um_user_pre_updating_files_array', $files);
117
+
118
  if ( is_array( $files ) ) {
119
  $ultimatemember->user->update_files( $files );
120
+ do_action('um_after_user_upload', um_user('ID'), $files );
121
  }
122
 
 
 
123
  do_action('um_user_after_updating_profile', $to_update );
124
+
125
  do_action('um_update_profile_full_name', $to_update );
126
 
127
+
128
  if ( !isset( $args['is_signup'] ) ) {
129
  $url = $ultimatemember->permalinks->profile_url( true );
130
  exit( wp_redirect( um_edit_my_profile_cancel_uri( $url ) ) );
206
 
207
  <div class="um-cover <?php if ( um_profile('cover_photo') || ( $default_cover && $default_cover['url'] ) ) echo 'has-cover'; ?>" data-user_id="<?php echo um_profile_id(); ?>" data-ratio="<?php echo $args['cover_ratio']; ?>">
208
 
209
+ <?php do_action('um_cover_area_content', um_profile_id() ); ?>
210
+
211
  <?php
212
 
213
  if ( $ultimatemember->fields->editing ) {
core/um-builtin.php CHANGED
@@ -1082,7 +1082,7 @@ class UM_Builtin {
1082
  $fields_without_metakey = apply_filters('um_fields_without_metakey', $fields_without_metakey );
1083
 
1084
  if ( !$show_all ) {
1085
- $this->fields_dropdown = array('image','file','password','textarea','rating');
1086
  $this->fields_dropdown = array_merge( $this->fields_dropdown, $fields_without_metakey );
1087
  } else {
1088
  $this->fields_dropdown = $fields_without_metakey;
1082
  $fields_without_metakey = apply_filters('um_fields_without_metakey', $fields_without_metakey );
1083
 
1084
  if ( !$show_all ) {
1085
+ $this->fields_dropdown = array('image','file','password','rating');
1086
  $this->fields_dropdown = array_merge( $this->fields_dropdown, $fields_without_metakey );
1087
  } else {
1088
  $this->fields_dropdown = $fields_without_metakey;
core/um-fields.php CHANGED
@@ -435,7 +435,8 @@ class UM_Fields {
435
  $field_value = um_user( $key );
436
  $field_value= apply_filters('um_is_selected_filter_value', $field_value);
437
 
438
- if ( $field_value && $this->editing == true && is_array( $field_value ) && in_array( $value, $field_value ) ) {
 
439
  return true;
440
  }
441
 
@@ -1620,7 +1621,7 @@ class UM_Fields {
1620
  $val = (string) $val;
1621
  $val = trim( $val );
1622
  $post_id = $wpdb->get_var(
1623
- $wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = 'um_role' AND post_name = %s OR post_title = %s", $key, $val )
1624
  );
1625
  $_role = get_post( $post_id );
1626
  if( isset( $_role->post_title ) ){
@@ -1804,7 +1805,7 @@ class UM_Fields {
1804
  $val = (string) $val;
1805
  $val = trim( $val );
1806
  $post_id = $wpdb->get_var(
1807
- $wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = 'um_role' AND post_name = %s OR post_title = %s", $rkey, $val )
1808
  );
1809
  $_role = get_post($post_id);
1810
  $new_roles[$_role->post_name] = $_role->post_title;
435
  $field_value = um_user( $key );
436
  $field_value= apply_filters('um_is_selected_filter_value', $field_value);
437
 
438
+
439
+ if ( $field_value && $this->editing == true && is_array( $field_value ) && ( in_array( $value, $field_value ) || in_array( html_entity_decode( $value ), $field_value ) ) ) {
440
  return true;
441
  }
442
 
1621
  $val = (string) $val;
1622
  $val = trim( $val );
1623
  $post_id = $wpdb->get_var(
1624
+ $wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = 'um_role' AND ( post_name = %s OR post_title = %s )", $key, $val )
1625
  );
1626
  $_role = get_post( $post_id );
1627
  if( isset( $_role->post_title ) ){
1805
  $val = (string) $val;
1806
  $val = trim( $val );
1807
  $post_id = $wpdb->get_var(
1808
+ $wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = 'um_role' AND ( post_name = %s OR post_title = %s )", $rkey, $val )
1809
  );
1810
  $_role = get_post($post_id);
1811
  $new_roles[$_role->post_name] = $_role->post_title;
core/um-files.php CHANGED
@@ -378,6 +378,9 @@ class UM_Files {
378
  }
379
  }
380
 
 
 
 
381
  if ( $fileinfo['invalid_image'] == true ) {
382
  $error = sprintf(__('Your image is invalid or too large!','ultimatemember') );
383
  } elseif ( isset( $data['allowed_types'] ) && !$this->in_array( $fileinfo['extension'], $data['allowed_types'] ) ) {
@@ -537,7 +540,9 @@ class UM_Files {
537
  wp_die( __('Unauthorized to do this attempt.','ultimatemember') );
538
  }
539
 
540
- if ( !is_user_logged_in() && ( $key == 'profile_photo' || $key == 'cover_photo' ) ) {
 
 
541
  wp_die( __('Unauthorized to do this attempt.','ultimatemember') );
542
  }
543
 
378
  }
379
  }
380
 
381
+ $data = apply_filters("um_image_handle_global__option", $data );
382
+ $data = apply_filters("um_image_handle_{$field}__option", $data );
383
+
384
  if ( $fileinfo['invalid_image'] == true ) {
385
  $error = sprintf(__('Your image is invalid or too large!','ultimatemember') );
386
  } elseif ( isset( $data['allowed_types'] ) && !$this->in_array( $fileinfo['extension'], $data['allowed_types'] ) ) {
540
  wp_die( __('Unauthorized to do this attempt.','ultimatemember') );
541
  }
542
 
543
+ $allow_frontend_image_uploads = apply_filters('um_allow_frontend_image_uploads', false, $user_id, $key );
544
+
545
+ if ( $allow_frontend_image_uploads == false && !is_user_logged_in() && ( $key == 'profile_photo' || $key == 'cover_photo' ) ) {
546
  wp_die( __('Unauthorized to do this attempt.','ultimatemember') );
547
  }
548
 
core/um-filters-members.php CHANGED
@@ -53,7 +53,7 @@
53
 
54
  }
55
 
56
- if ( ! um_user_can('can_edit_everyone') ) {
57
  $query_args['meta_query'][] = array(
58
  "relation" => "OR",
59
  array(
@@ -104,7 +104,7 @@
104
 
105
  if ( !in_array( $field, $ultimatemember->members->core_search_fields ) ) {
106
 
107
- $query_args['meta_query'][] = array(
108
  array(
109
  'key' => $field,
110
  'value' => trim( $value ),
@@ -123,7 +123,9 @@
123
  'relation' => 'OR',
124
  );
125
 
126
-
 
 
127
 
128
  }
129
 
@@ -134,9 +136,7 @@
134
 
135
  }
136
 
137
-
138
-
139
- // allow filtering
140
  $query_args = apply_filters('um_query_args_filter', $query_args );
141
 
142
  if ( count ($query_args['meta_query']) == 1 ) {
53
 
54
  }
55
 
56
+ if ( ! um_user_can('can_edit_everyone') && um_get_option('account_hide_in_directory') ) {
57
  $query_args['meta_query'][] = array(
58
  "relation" => "OR",
59
  array(
104
 
105
  if ( !in_array( $field, $ultimatemember->members->core_search_fields ) ) {
106
 
107
+ $field_query = array(
108
  array(
109
  'key' => $field,
110
  'value' => trim( $value ),
123
  'relation' => 'OR',
124
  );
125
 
126
+
127
+ $field_query = apply_filters("um_query_args_{$field}__filter", $field_query );
128
+ $query_args['meta_query'][] = $field_query;
129
 
130
  }
131
 
136
 
137
  }
138
 
139
+ // allow filtering
 
 
140
  $query_args = apply_filters('um_query_args_filter', $query_args );
141
 
142
  if ( count ($query_args['meta_query']) == 1 ) {
core/um-members.php CHANGED
@@ -136,7 +136,7 @@ class UM_Members {
136
  /***
137
  *** @Generate a loop of results
138
  ***/
139
- function get_members($args){
140
 
141
  global $ultimatemember, $wpdb, $post;
142
 
@@ -154,9 +154,17 @@ class UM_Members {
154
  }
155
 
156
  $query_args['number'] = $profiles_per_page;
157
-
158
- $members_page = isset( $_REQUEST['members_page'] ) ? $_REQUEST['members_page'] : 1;
159
-
 
 
 
 
 
 
 
 
160
  $query_args['paged'] = $members_page;
161
 
162
  $users = new WP_User_Query( $query_args );
@@ -165,7 +173,7 @@ class UM_Members {
165
 
166
  $array['total_users'] = (isset( $max_users ) && $max_users && $max_users <= $users->total_users ) ? $max_users : $users->total_users;
167
 
168
- $array['page'] = ! isset( $_REQUEST['members_page'] ) && isset( $args['page'] ) ? $args['page'] : $members_page;
169
 
170
  $array['total_pages'] = ceil( $array['total_users'] / $profiles_per_page );
171
 
136
  /***
137
  *** @Generate a loop of results
138
  ***/
139
+ function get_members( $args ){
140
 
141
  global $ultimatemember, $wpdb, $post;
142
 
154
  }
155
 
156
  $query_args['number'] = $profiles_per_page;
157
+
158
+ if( isset( $args['number'] ) ){
159
+ $query_args['number'] = $args['number'];
160
+ }
161
+
162
+ if( isset( $args['page'] ) ){
163
+ $members_page = $args['page'];
164
+ }else{
165
+ $members_page = isset( $_REQUEST['members_page'] ) ? $_REQUEST['members_page'] : 1;
166
+ }
167
+
168
  $query_args['paged'] = $members_page;
169
 
170
  $users = new WP_User_Query( $query_args );
173
 
174
  $array['total_users'] = (isset( $max_users ) && $max_users && $max_users <= $users->total_users ) ? $max_users : $users->total_users;
175
 
176
+ $array['page'] = $members_page;
177
 
178
  $array['total_pages'] = ceil( $array['total_users'] / $profiles_per_page );
179
 
core/um-query.php CHANGED
@@ -6,11 +6,11 @@ class UM_Query {
6
  public $roles = array();
7
 
8
  function __construct() {
9
-
10
  add_action('wp_loaded', array(&$this, 'get_post_types'), 100 );
11
-
12
  }
13
-
14
  /***
15
  *** @get wp pages
16
  ***/
@@ -22,11 +22,11 @@ class UM_Query {
22
  }
23
 
24
  $count_pages = wp_count_posts('page');
25
-
26
  if ( $count_pages->publish > 300 ){
27
  return 'reached_maximum_limit';
28
  }
29
-
30
 
31
  $pages = $wpdb->get_results('SELECT * FROM '.$wpdb->posts.' WHERE post_type = "page" AND post_status = "publish" ', OBJECT);
32
 
@@ -41,27 +41,27 @@ class UM_Query {
41
 
42
  return $array;
43
  }
44
-
45
  /***
46
  *** @get all forms
47
  ***/
48
  function forms() {
49
-
50
  $args = array(
51
  'post_type' => 'um_form',
52
  'posts_per_page' => 200,
53
  'post_status' => array('publish')
54
  );
55
-
56
  $query = new WP_Query( $args );
57
  foreach( $query->posts as $post ) {
58
  setup_postdata( $post );
59
  $results[ $post->ID ] = $post->post_title;
60
  }
61
  return $results;
62
-
63
  }
64
-
65
  /***
66
  *** @get all post types
67
  ***/
@@ -71,18 +71,18 @@ class UM_Query {
71
  $this->get_post_types[] = $k;
72
  }
73
  }
74
-
75
  /***
76
  *** @Do custom queries
77
  ***/
78
  function make( $args ) {
79
-
80
  $defaults = array(
81
  'post_type' => 'post',
82
  'post_status' => array('publish')
83
  );
84
  $args = wp_parse_args( $args, $defaults );
85
-
86
  if ( isset( $args['post__in'] ) && empty( $args['post__in'] ) )
87
  return false;
88
 
@@ -91,34 +91,34 @@ class UM_Query {
91
  if ( $post_type == 'comment' ) { // comments
92
 
93
  unset( $args['post_type'] );
94
-
95
  $args['type__not_in'] = apply_filters( 'um_excluded_comment_types', array('') );
96
-
97
  $comments = get_comments($args);
98
  return $comments;
99
-
100
  } else {
101
 
102
  $custom_posts = new WP_Query();
103
  $custom_posts->query( $args );
104
  return $custom_posts;
105
-
106
  }
107
-
108
  }
109
-
110
  /***
111
  *** @Get last users
112
  ***/
113
  function get_recent_users($number = 5){
114
  global $wpdb;
115
-
116
  $args = array( 'fields' => 'ID', 'number' => $number, 'orderby' => 'user_registered', 'order' => 'desc' );
117
-
118
  $users = new WP_User_Query( $args );
119
  return $users->results;
120
  }
121
-
122
  /***
123
  *** @Count users by status
124
  ***/
@@ -136,13 +136,13 @@ class UM_Query {
136
  $users = new WP_User_Query( $args );
137
  return count($users->results);
138
  }
139
-
140
  /***
141
  *** @Get users by status
142
  ***/
143
  function get_users_by_status($status, $number = 5){
144
  global $wpdb;
145
-
146
  $args = array( 'fields' => 'ID', 'number' => $number, 'orderby' => 'user_registered', 'order' => 'desc' );
147
 
148
  $args['meta_query'][] = array(
@@ -152,11 +152,11 @@ class UM_Query {
152
  'compare' => '='
153
  )
154
  );
155
-
156
  $users = new WP_User_Query( $args );
157
  return $users->results;
158
  }
159
-
160
  /***
161
  *** @get user's role
162
  ***/
@@ -171,7 +171,7 @@ class UM_Query {
171
  }
172
  return $role;
173
  }
174
-
175
  /***
176
  *** @Count all users
177
  ***/
@@ -179,13 +179,13 @@ class UM_Query {
179
  $result = count_users();
180
  return $result['total_users'];
181
  }
182
-
183
  /***
184
  *** @Count users of specific role
185
  ***/
186
  function count_users_by_role($role){
187
  global $wpdb;
188
-
189
  $args['fields'] = 'ID';
190
  $args['meta_query'] = array(
191
  array(
@@ -194,19 +194,19 @@ class UM_Query {
194
  'compare' => '='
195
  )
196
  );
197
-
198
  $users = new WP_User_Query( $args );
199
-
200
  return count($users->results);
201
  }
202
-
203
  /***
204
  *** @Using wpdb instead of update_post_meta
205
  ***/
206
  function update_attr( $key, $post_id, $new_value ){
207
  update_post_meta( $post_id, '_um_' . $key, $new_value );
208
  }
209
-
210
  /***
211
  *** @get data
212
  ***/
@@ -214,7 +214,7 @@ class UM_Query {
214
  $meta = get_post_meta( $post_id, '_um_' . $key, true );
215
  return $meta;
216
  }
217
-
218
  /***
219
  *** @delete data
220
  ***/
@@ -222,7 +222,7 @@ class UM_Query {
222
  $meta = delete_post_meta( $post_id, '_um_' . $key );
223
  return $meta;
224
  }
225
-
226
  /***
227
  *** @Checks if post has a specific meta key
228
  ***/
@@ -240,7 +240,7 @@ class UM_Query {
240
  }
241
  return false;
242
  }
243
-
244
  /***
245
  *** @Get posts with specific meta key/value
246
  ***/
@@ -250,7 +250,7 @@ class UM_Query {
250
  return $posts[0]->ID;
251
  return false;
252
  }
253
-
254
  /***
255
  *** @Get role data
256
  ***/
@@ -260,7 +260,7 @@ class UM_Query {
260
  if ( get_option("um_cached_role_{$role_slug}") ) {
261
  return get_option("um_cached_role_{$role_slug}");
262
  }
263
-
264
  if ($role_slug == 'admin' || $role_slug == 'member'){
265
  $try = $this->find_post_id('um_role','_um_core',$role_slug);
266
  if ( isset( $try ) ){
@@ -271,7 +271,7 @@ class UM_Query {
271
  $post_id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = 'um_role' AND post_name = '$role_slug'");
272
  $real_role_slug = $role_slug;
273
  }
274
-
275
  if ( isset($post_id) && $post_id != '' ){
276
  $meta = get_post_custom( $post_id );
277
  $array['role'] = $real_role_slug;
@@ -280,22 +280,22 @@ class UM_Query {
280
  $k = str_replace('_um_', '', $k);
281
  $array[$k] = $v[0];
282
  }
283
-
284
  }
285
  } else {
286
-
287
  // no permissions, something wrong
288
  $array = $ultimatemember->setup->get_initial_permissions( $role_slug );
289
 
290
  }
291
-
292
  if ( !get_option("um_cached_role_{$role_slug}") ) {
293
  update_option("um_cached_role_{$role_slug}", $array );
294
  }
295
 
296
  return $array;
297
  }
298
-
299
  /***
300
  *** @Get post data
301
  ***/
@@ -314,9 +314,9 @@ class UM_Query {
314
  $k = str_replace('_um_', '', $k);
315
  $array[$k] = $v[0];
316
  }
317
-
318
  }
319
-
320
  foreach( $array as $k => $v ) {
321
  if ( strstr( $k, 'login_') || strstr( $k, 'register_' ) || strstr( $k, 'profile_' ) ){
322
  if ( $mode != 'directory' ) {
@@ -326,7 +326,7 @@ class UM_Query {
326
  }
327
  return $array;
328
  }
329
-
330
  /***
331
  *** @Capture selected value
332
  ***/
@@ -334,7 +334,7 @@ class UM_Query {
334
  global $post;
335
  $post_id = get_the_ID();
336
  $try = get_post_meta( $post_id, $key, true);
337
-
338
  if (isset($try) && !empty($try))
339
  if (is_array($try) && in_array($array_key, $try) ){
340
  return $array_key;
@@ -343,7 +343,7 @@ class UM_Query {
343
  } else {
344
  return $try;
345
  }
346
-
347
  if ($fallback == 'na') {
348
  $fallback = 0;
349
  $none = '';
@@ -352,7 +352,7 @@ class UM_Query {
352
  }
353
  return (!empty($fallback)) ? $fallback : $none;
354
  }
355
-
356
  /***
357
  *** @Checks if its a core page of UM
358
  ***/
@@ -364,12 +364,12 @@ class UM_Query {
364
  return false;
365
  }
366
  }
367
-
368
  /***
369
  *** @Query for UM roles
370
  ***/
371
  function get_roles( $add_default = false, $exclude = null ){
372
-
373
  $exclude_str = '';
374
 
375
  if( ! is_null( $exclude ) && is_array( $exclude ) ){
@@ -381,48 +381,48 @@ class UM_Query {
381
  }
382
 
383
  $roles = array();
384
-
385
  if ( $add_default ) {
386
  $roles[0] = $add_default;
387
  }
388
-
389
  $args = array(
390
  'post_type' => 'um_role',
391
  'posts_per_page' => -1,
392
  'post_status' => array('publish')
393
  );
394
-
395
- $results = new WP_Query($args);
396
 
397
- if ( $results->posts ){
 
 
 
 
398
 
399
- foreach($results->posts as $post) { setup_postdata( $post );
400
-
401
  if ( $this->is_core( $post->ID ) ){
402
  $roles[ $this->is_core( $post->ID ) ] = $post->post_title;
403
  } else {
404
  $roles[ $post->post_name ] = $post->post_title;
405
  }
406
-
407
  }
408
 
409
  } else {
410
-
411
  $roles['member'] = 'Member';
412
  $roles['admin'] = 'Admin';
413
-
414
  }
415
-
416
  if ( $exclude ) {
417
  foreach( $exclude as $role ) {
418
  unset($roles[$role]);
419
  }
420
  }
421
-
422
  $this->roles['is_add_default_'.$add_default ][ 'is_exclude_'.$exclude_str ] = $roles;
423
 
424
  return $roles;
425
-
426
  }
427
 
428
- }
6
  public $roles = array();
7
 
8
  function __construct() {
9
+
10
  add_action('wp_loaded', array(&$this, 'get_post_types'), 100 );
11
+
12
  }
13
+
14
  /***
15
  *** @get wp pages
16
  ***/
22
  }
23
 
24
  $count_pages = wp_count_posts('page');
25
+
26
  if ( $count_pages->publish > 300 ){
27
  return 'reached_maximum_limit';
28
  }
29
+
30
 
31
  $pages = $wpdb->get_results('SELECT * FROM '.$wpdb->posts.' WHERE post_type = "page" AND post_status = "publish" ', OBJECT);
32
 
41
 
42
  return $array;
43
  }
44
+
45
  /***
46
  *** @get all forms
47
  ***/
48
  function forms() {
49
+
50
  $args = array(
51
  'post_type' => 'um_form',
52
  'posts_per_page' => 200,
53
  'post_status' => array('publish')
54
  );
55
+
56
  $query = new WP_Query( $args );
57
  foreach( $query->posts as $post ) {
58
  setup_postdata( $post );
59
  $results[ $post->ID ] = $post->post_title;
60
  }
61
  return $results;
62
+
63
  }
64
+
65
  /***
66
  *** @get all post types
67
  ***/
71
  $this->get_post_types[] = $k;
72
  }
73
  }
74
+
75
  /***
76
  *** @Do custom queries
77
  ***/
78
  function make( $args ) {
79
+
80
  $defaults = array(
81
  'post_type' => 'post',
82
  'post_status' => array('publish')
83
  );
84
  $args = wp_parse_args( $args, $defaults );
85
+
86
  if ( isset( $args['post__in'] ) && empty( $args['post__in'] ) )
87
  return false;
88
 
91
  if ( $post_type == 'comment' ) { // comments
92
 
93
  unset( $args['post_type'] );
94
+
95
  $args['type__not_in'] = apply_filters( 'um_excluded_comment_types', array('') );
96
+
97
  $comments = get_comments($args);
98
  return $comments;
99
+
100
  } else {
101
 
102
  $custom_posts = new WP_Query();
103
  $custom_posts->query( $args );
104
  return $custom_posts;
105
+
106
  }
107
+
108
  }
109
+
110
  /***
111
  *** @Get last users
112
  ***/
113
  function get_recent_users($number = 5){
114
  global $wpdb;
115
+
116
  $args = array( 'fields' => 'ID', 'number' => $number, 'orderby' => 'user_registered', 'order' => 'desc' );
117
+
118
  $users = new WP_User_Query( $args );
119
  return $users->results;
120
  }
121
+
122
  /***
123
  *** @Count users by status
124
  ***/
136
  $users = new WP_User_Query( $args );
137
  return count($users->results);
138
  }
139
+
140
  /***
141
  *** @Get users by status
142
  ***/
143
  function get_users_by_status($status, $number = 5){
144
  global $wpdb;
145
+
146
  $args = array( 'fields' => 'ID', 'number' => $number, 'orderby' => 'user_registered', 'order' => 'desc' );
147
 
148
  $args['meta_query'][] = array(
152
  'compare' => '='
153
  )
154
  );
155
+
156
  $users = new WP_User_Query( $args );
157
  return $users->results;
158
  }
159
+
160
  /***
161
  *** @get user's role
162
  ***/
171
  }
172
  return $role;
173
  }
174
+
175
  /***
176
  *** @Count all users
177
  ***/
179
  $result = count_users();
180
  return $result['total_users'];
181
  }
182
+
183
  /***
184
  *** @Count users of specific role
185
  ***/
186
  function count_users_by_role($role){
187
  global $wpdb;
188
+
189
  $args['fields'] = 'ID';
190
  $args['meta_query'] = array(
191
  array(
194
  'compare' => '='
195
  )
196
  );
197
+
198
  $users = new WP_User_Query( $args );
199
+
200
  return count($users->results);
201
  }
202
+
203
  /***
204
  *** @Using wpdb instead of update_post_meta
205
  ***/
206
  function update_attr( $key, $post_id, $new_value ){
207
  update_post_meta( $post_id, '_um_' . $key, $new_value );
208
  }
209
+
210
  /***
211
  *** @get data
212
  ***/
214
  $meta = get_post_meta( $post_id, '_um_' . $key, true );
215
  return $meta;
216
  }
217
+
218
  /***
219
  *** @delete data
220
  ***/
222
  $meta = delete_post_meta( $post_id, '_um_' . $key );
223
  return $meta;
224
  }
225
+
226
  /***
227
  *** @Checks if post has a specific meta key
228
  ***/
240
  }
241
  return false;
242
  }
243
+
244
  /***
245
  *** @Get posts with specific meta key/value
246
  ***/
250
  return $posts[0]->ID;
251
  return false;
252
  }
253
+
254
  /***
255
  *** @Get role data
256
  ***/
260
  if ( get_option("um_cached_role_{$role_slug}") ) {
261
  return get_option("um_cached_role_{$role_slug}");
262
  }
263
+
264
  if ($role_slug == 'admin' || $role_slug == 'member'){
265
  $try = $this->find_post_id('um_role','_um_core',$role_slug);
266
  if ( isset( $try ) ){
271
  $post_id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = 'um_role' AND post_name = '$role_slug'");
272
  $real_role_slug = $role_slug;
273
  }
274
+
275
  if ( isset($post_id) && $post_id != '' ){
276
  $meta = get_post_custom( $post_id );
277
  $array['role'] = $real_role_slug;
280
  $k = str_replace('_um_', '', $k);
281
  $array[$k] = $v[0];
282
  }
283
+
284
  }
285
  } else {
286
+
287
  // no permissions, something wrong
288
  $array = $ultimatemember->setup->get_initial_permissions( $role_slug );
289
 
290
  }
291
+
292
  if ( !get_option("um_cached_role_{$role_slug}") ) {
293
  update_option("um_cached_role_{$role_slug}", $array );
294
  }
295
 
296
  return $array;
297
  }
298
+
299
  /***
300
  *** @Get post data
301
  ***/
314
  $k = str_replace('_um_', '', $k);
315
  $array[$k] = $v[0];
316
  }
317
+
318
  }
319
+
320
  foreach( $array as $k => $v ) {
321
  if ( strstr( $k, 'login_') || strstr( $k, 'register_' ) || strstr( $k, 'profile_' ) ){
322
  if ( $mode != 'directory' ) {
326
  }
327
  return $array;
328
  }
329
+
330
  /***
331
  *** @Capture selected value
332
  ***/
334
  global $post;
335
  $post_id = get_the_ID();
336
  $try = get_post_meta( $post_id, $key, true);
337
+
338
  if (isset($try) && !empty($try))
339
  if (is_array($try) && in_array($array_key, $try) ){
340
  return $array_key;
343
  } else {
344
  return $try;
345
  }
346
+
347
  if ($fallback == 'na') {
348
  $fallback = 0;
349
  $none = '';
352
  }
353
  return (!empty($fallback)) ? $fallback : $none;
354
  }
355
+
356
  /***
357
  *** @Checks if its a core page of UM
358
  ***/
364
  return false;
365
  }
366
  }
367
+
368
  /***
369
  *** @Query for UM roles
370
  ***/
371
  function get_roles( $add_default = false, $exclude = null ){
372
+
373
  $exclude_str = '';
374
 
375
  if( ! is_null( $exclude ) && is_array( $exclude ) ){
381
  }
382
 
383
  $roles = array();
384
+
385
  if ( $add_default ) {
386
  $roles[0] = $add_default;
387
  }
388
+
389
  $args = array(
390
  'post_type' => 'um_role',
391
  'posts_per_page' => -1,
392
  'post_status' => array('publish')
393
  );
 
 
394
 
395
+ $posts = get_posts($args);
396
+
397
+ if ( $posts ){
398
+
399
+ foreach($posts as $post) {
400
 
 
 
401
  if ( $this->is_core( $post->ID ) ){
402
  $roles[ $this->is_core( $post->ID ) ] = $post->post_title;
403
  } else {
404
  $roles[ $post->post_name ] = $post->post_title;
405
  }
406
+
407
  }
408
 
409
  } else {
410
+
411
  $roles['member'] = 'Member';
412
  $roles['admin'] = 'Admin';
413
+
414
  }
415
+
416
  if ( $exclude ) {
417
  foreach( $exclude as $role ) {
418
  unset($roles[$role]);
419
  }
420
  }
421
+
422
  $this->roles['is_add_default_'.$add_default ][ 'is_exclude_'.$exclude_str ] = $roles;
423
 
424
  return $roles;
425
+
426
  }
427
 
428
+ }
core/um-rewrite.php CHANGED
@@ -173,11 +173,17 @@ class UM_Rewrite {
173
 
174
  exit( wp_redirect( $url ) );
175
  }else{
176
- exit( wp_redirect( home_url() ) );
 
 
 
 
 
177
  }
178
 
179
  }
180
 
181
  }
182
 
 
183
  }
173
 
174
  exit( wp_redirect( $url ) );
175
  }else{
176
+
177
+ $redirect_to = apply_filters('um_locate_user_profile_not_loggedin__redirect', home_url() );
178
+ if( ! empty( $redirect_to ) ){
179
+ exit( wp_redirect( $redirect_to ) );
180
+ }
181
+
182
  }
183
 
184
  }
185
 
186
  }
187
 
188
+
189
  }
core/um-short-functions.php CHANGED
@@ -479,16 +479,16 @@ function um_user_ip() {
479
  }
480
 
481
 
482
- function um_profile_id() {
483
 
484
- if ( um_get_requested_user() ) {
485
- return um_get_requested_user();
486
- } else if ( is_user_logged_in() && get_current_user_id() ) {
487
- return get_current_user_id();
488
- }
489
 
490
- return 0;
491
- }
492
 
493
  /***
494
  *** @Check that temp upload is valid
479
  }
480
 
481
 
482
+ function um_profile_id() {
483
 
484
+ if ( um_get_requested_user() ) {
485
+ return um_get_requested_user();
486
+ } else if ( is_user_logged_in() && get_current_user_id() ) {
487
+ return get_current_user_id();
488
+ }
489
 
490
+ return 0;
491
+ }
492
 
493
  /***
494
  *** @Check that temp upload is valid
core/um-shortcodes.php CHANGED
@@ -547,9 +547,16 @@ class UM_Shortcodes {
547
  $a = shortcode_atts( array(
548
  'roles' => '',
549
  'not' => '',
 
550
  ), $atts );
551
 
552
- um_fetch_user( $user_ID );
 
 
 
 
 
 
553
 
554
  $current_user_role = um_user('role');
555
 
547
  $a = shortcode_atts( array(
548
  'roles' => '',
549
  'not' => '',
550
+ 'is_profile' => false,
551
  ), $atts );
552
 
553
+ if( $a['is_profile'] ){
554
+ um_fetch_user( um_profile_id() );
555
+ }else{
556
+ um_fetch_user( $user_ID );
557
+ }
558
+
559
+
560
 
561
  $current_user_role = um_user('role');
562
 
core/um-user.php CHANGED
@@ -690,6 +690,8 @@ class UM_User {
690
  }
691
  }
692
 
 
 
693
  $ultimatemember->profile->arr_user_roles[ 'is_1' ][ $slug ] = $role_id;
694
  $ultimatemember->profile->arr_user_roles[ 'is_' ][ $slug ] = $role_title;
695
 
690
  }
691
  }
692
 
693
+ wp_reset_query();
694
+
695
  $ultimatemember->profile->arr_user_roles[ 'is_1' ][ $slug ] = $role_id;
696
  $ultimatemember->profile->arr_user_roles[ 'is_' ][ $slug ] = $role_title;
697
 
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Ultimate Member
4
  Plugin URI: http://ultimatemember.com/
5
  Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
6
- Version: 1.3.71
7
  Author: Ultimate Member
8
  Author URI: http://ultimatemember.com/
9
  Text Domain: ultimatemember
@@ -55,7 +55,7 @@ Domain Path: /languages
55
 
56
  $links = $more_links + $links;
57
 
58
- $links[] = '<a href="'.admin_url().'?um_adm_action=uninstall_ultimatemember" class="delete" title="'.__('Remove this plugin','ultimatemember').'">' . __( 'Uninstall','ultimatemember' ) . '</a>';
59
 
60
  return $links;
61
 
3
  Plugin Name: Ultimate Member
4
  Plugin URI: http://ultimatemember.com/
5
  Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
6
+ Version: 1.3.72
7
  Author: Ultimate Member
8
  Author URI: http://ultimatemember.com/
9
  Text Domain: ultimatemember
55
 
56
  $links = $more_links + $links;
57
 
58
+ $links[] = '<a href="'.admin_url().'?um_adm_action=uninstall_ultimatemember" class="um-delete" title="'.__('Remove this plugin','ultimatemember').'">' . __( 'Uninstall','ultimatemember' ) . '</a>';
59
 
60
  return $links;
61
 
languages/ultimatemember-en_US.mo CHANGED
Binary file
languages/ultimatemember-en_US.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ultimate Member\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2016-07-07 09:57+0800\n"
6
- "PO-Revision-Date: 2016-07-07 09:58+0800\n"
7
  "Last-Translator: Calum Allison <umplugin@gmail.com>\n"
8
  "Language-Team: Ultimate Member <umplugin@gmail.com>\n"
9
  "Language: en_US\n"
@@ -21,6 +21,12 @@ msgstr ""
21
  "X-Poedit-SearchPathExcluded-2: admin/core/lib/ReduxFramework\n"
22
  "X-Poedit-SearchPathExcluded-3: assets/vendor\n"
23
 
 
 
 
 
 
 
24
  #: admin/core/um-admin-access.php:107 admin/core/um-admin-dashboard.php:127
25
  #: admin/core/um-admin-redux.php:55
26
  msgid "Ultimate Member"
@@ -74,8 +80,8 @@ msgstr ""
74
  msgid "This field type is not setup correcty."
75
  msgstr ""
76
 
77
- #: admin/core/um-admin-actions.php:19 admin/core/um-admin-users.php:323
78
- #: core/um-user.php:67
79
  msgid "Community Role"
80
  msgstr ""
81
 
@@ -116,15 +122,15 @@ msgstr ""
116
  msgid "Users who cannot see content will get redirected to that URL."
117
  msgstr ""
118
 
119
- #: admin/core/um-admin-actions.php:209
120
  msgid "This is a translation of UM profile page?"
121
  msgstr ""
122
 
123
- #: admin/core/um-admin-actions.php:215
124
  msgid "This is a translation of UM account page?"
125
  msgstr ""
126
 
127
- #: admin/core/um-admin-actions.php:299
128
  #, php-format
129
  msgid "Duplicate of %s"
130
  msgstr ""
@@ -293,9 +299,9 @@ msgstr ""
293
 
294
  #: admin/core/um-admin-metabox.php:115 core/um-builtin.php:1011
295
  #: core/um-builtin.php:1026 um-config.php:159 um-config.php:169
296
- #: um-config.php:179 um-config.php:189 um-config.php:219 um-config.php:421
297
- #: um-config.php:431 um-config.php:463 um-config.php:494 um-config.php:503
298
- #: um-config.php:523 um-config.php:1315
299
  msgid "Yes"
300
  msgstr ""
301
 
@@ -303,8 +309,9 @@ msgstr ""
303
  #: core/um-actions-account.php:41 core/um-builtin.php:1010
304
  #: core/um-builtin.php:1011 core/um-builtin.php:1025 core/um-builtin.php:1026
305
  #: um-config.php:160 um-config.php:170 um-config.php:180 um-config.php:190
306
- #: um-config.php:220 um-config.php:422 um-config.php:432 um-config.php:464
307
- #: um-config.php:495 um-config.php:504 um-config.php:524 um-config.php:1316
 
308
  msgid "No"
309
  msgstr ""
310
 
@@ -384,8 +391,8 @@ msgstr ""
384
  #: admin/core/um-admin-metabox.php:286 admin/core/um-admin-metabox.php:292
385
  #: admin/core/um-admin-metabox.php:298 admin/templates/form/login_css.php:4
386
  #: admin/templates/form/profile_css.php:4
387
- #: admin/templates/form/register_css.php:4 um-config.php:1952
388
- #: um-config.php:1958
389
  msgid "Custom CSS"
390
  msgstr ""
391
 
@@ -412,28 +419,28 @@ msgstr ""
412
  msgid "Value"
413
  msgstr ""
414
 
415
- #: admin/core/um-admin-metabox.php:688
416
  msgid "Optional text to include with the divider"
417
  msgstr ""
418
 
419
- #: admin/core/um-admin-metabox.php:879
420
  msgid ""
421
  "Turn on to force users to create a strong password (A combination of one "
422
  "lowercase letter, one uppercase letter, and one number). If turned on this "
423
  "option is only applied to register forms and not to login forms."
424
  msgstr ""
425
 
426
- #: admin/core/um-admin-metabox.php:889
427
  msgid ""
428
  "Turn on to add a confirm password field. If turned on the confirm password "
429
  "field will only show on register forms and not on login forms."
430
  msgstr ""
431
 
432
- #: admin/core/um-admin-metabox.php:1253
433
  msgid "Minimum number that can be entered in this field"
434
  msgstr ""
435
 
436
- #: admin/core/um-admin-metabox.php:1263
437
  msgid "Maximum number that can be entered in this field"
438
  msgstr ""
439
 
@@ -494,7 +501,7 @@ msgid ""
494
  "will be deleted: <p>%s</p> <strong>This cannot be undone!</strong>"
495
  msgstr ""
496
 
497
- #: admin/core/um-admin-notices.php:175 core/um-actions-profile.php:209
498
  msgid "Remove"
499
  msgstr ""
500
 
@@ -527,10 +534,14 @@ msgid "Users have been updated."
527
  msgstr ""
528
 
529
  #: admin/core/um-admin-notices.php:204
 
 
 
 
530
  msgid "Super administrators cannot be modified."
531
  msgstr ""
532
 
533
- #: admin/core/um-admin-notices.php:205
534
  msgid "Other users have been updated."
535
  msgstr ""
536
 
@@ -576,8 +587,8 @@ msgstr ""
576
  msgid "Core"
577
  msgstr ""
578
 
579
- #: admin/core/um-admin-users.php:35 core/um-actions-account.php:375
580
- #: core/um-actions-account.php:410
581
  msgid "View profile"
582
  msgstr ""
583
 
@@ -586,7 +597,7 @@ msgid "Info"
586
  msgstr ""
587
 
588
  #: admin/core/um-admin-users.php:129 admin/templates/dashboard/users.php:12
589
- #: core/um-user.php:236
590
  msgid "Approved"
591
  msgstr ""
592
 
@@ -606,36 +617,36 @@ msgstr ""
606
  msgid "Rejected"
607
  msgstr ""
608
 
609
- #: admin/core/um-admin-users.php:178 admin/core/um-admin-users.php:214
610
  #: core/um-actions-core.php:21
611
  msgid "You do not have enough permissions to do that."
612
  msgstr ""
613
 
614
- #: admin/core/um-admin-users.php:272 admin/core/um-admin-users.php:274
615
  msgid "Filter by"
616
  msgstr ""
617
 
618
- #: admin/core/um-admin-users.php:283
619
  msgid "Filter"
620
  msgstr ""
621
 
622
- #: admin/core/um-admin-users.php:289 admin/core/um-admin-users.php:291
623
  msgid "UM Action"
624
  msgstr ""
625
 
626
- #: admin/core/um-admin-users.php:295 core/um-fields.php:1420
627
  msgid "Apply"
628
  msgstr ""
629
 
630
- #: admin/core/um-admin-users.php:301
631
  msgid "Community role&hellip;"
632
  msgstr ""
633
 
634
- #: admin/core/um-admin-users.php:308
635
  msgid "Change"
636
  msgstr ""
637
 
638
- #: admin/core/um-admin-users.php:323
639
  msgid "This is the membership role set by Ultimate Member plugin"
640
  msgstr ""
641
 
@@ -709,11 +720,11 @@ msgstr ""
709
  msgid "Users"
710
  msgstr ""
711
 
712
- #: admin/templates/dashboard/users.php:30 core/um-user.php:244
713
  msgid "Pending Review"
714
  msgstr ""
715
 
716
- #: admin/templates/dashboard/users.php:35 core/um-user.php:240
717
  msgid "Awaiting E-mail Confirmation"
718
  msgstr ""
719
 
@@ -1035,7 +1046,7 @@ msgid ""
1035
  "<strong>Note:</strong> Form type cannot be changed for the default forms."
1036
  msgstr ""
1037
 
1038
- #: admin/templates/form/mode.php:9 um-config.php:1737
1039
  msgid "Registration Form"
1040
  msgstr ""
1041
 
@@ -1043,7 +1054,7 @@ msgstr ""
1043
  msgid "Profile Form"
1044
  msgstr ""
1045
 
1046
- #: admin/templates/form/mode.php:13 um-config.php:1839
1047
  msgid "Login Form"
1048
  msgstr ""
1049
 
@@ -1067,23 +1078,23 @@ msgstr ""
1067
  msgid "Cover photo ratio"
1068
  msgstr ""
1069
 
1070
- #: admin/templates/form/profile_customize.php:129 um-config.php:1470
1071
  msgid "Profile Photo Size"
1072
  msgstr ""
1073
 
1074
- #: admin/templates/form/profile_customize.php:133 um-config.php:1479
1075
  msgid "Profile Photo Style"
1076
  msgstr ""
1077
 
1078
- #: admin/templates/form/profile_customize.php:136 um-config.php:1483
1079
  msgid "Circle"
1080
  msgstr ""
1081
 
1082
- #: admin/templates/form/profile_customize.php:137 um-config.php:1484
1083
  msgid "Rounded Corners"
1084
  msgstr ""
1085
 
1086
- #: admin/templates/form/profile_customize.php:138 um-config.php:1485
1087
  msgid "Square"
1088
  msgstr ""
1089
 
@@ -1141,8 +1152,8 @@ msgstr ""
1141
  msgid "Assign role to form"
1142
  msgstr ""
1143
 
1144
- #: admin/templates/form/register_customize.php:42 um-config.php:1370
1145
- #: um-config.php:1763 um-config.php:1865
1146
  msgid "The shortcode is centered by default unless you specify otherwise here"
1147
  msgstr ""
1148
 
@@ -1194,9 +1205,9 @@ msgstr ""
1194
  #: admin/templates/modal/dynamic_new_divider.php:15
1195
  #: admin/templates/modal/dynamic_new_field.php:15
1196
  #: admin/templates/modal/dynamic_new_group.php:15
1197
- #: core/um-actions-profile.php:210 core/um-actions-profile.php:324
1198
- #: core/um-actions-profile.php:336 core/um-actions-profile.php:505
1199
- #: core/um-fields.php:1421 core/um-fields.php:1509
1200
  msgid "Cancel"
1201
  msgstr ""
1202
 
@@ -1537,7 +1548,7 @@ msgstr ""
1537
  msgid "Support"
1538
  msgstr ""
1539
 
1540
- #: core/lib/upload/um-file-upload.php:54 core/lib/upload/um-image-upload.php:52
1541
  msgid "A theme or plugin compatibility issue"
1542
  msgstr ""
1543
 
@@ -1553,11 +1564,11 @@ msgstr ""
1553
  msgid "Privacy"
1554
  msgstr ""
1555
 
1556
- #: core/um-account.php:36 um-config.php:897
1557
  msgid "Notifications"
1558
  msgstr ""
1559
 
1560
- #: core/um-account.php:39 core/um-actions-account.php:222
1561
  #: core/um-builtin.php:1017 core/um-builtin.php:1020
1562
  msgid "Delete Account"
1563
  msgstr ""
@@ -1582,71 +1593,71 @@ msgstr ""
1582
  msgid "Email already linked to another account"
1583
  msgstr ""
1584
 
1585
- #: core/um-actions-account.php:135 core/um-actions-account.php:175
1586
  msgid "This is not your password"
1587
  msgstr ""
1588
 
1589
- #: core/um-actions-account.php:140
1590
  msgid "Your new password does not match"
1591
  msgstr ""
1592
 
1593
- #: core/um-actions-account.php:147 core/um-actions-password.php:165
1594
  msgid "Your password must contain at least 8 characters"
1595
  msgstr ""
1596
 
1597
- #: core/um-actions-account.php:151 core/um-actions-password.php:169
1598
  msgid "Your password must contain less than 30 characters"
1599
  msgstr ""
1600
 
1601
- #: core/um-actions-account.php:155 core/um-actions-form.php:222
1602
- #: core/um-actions-password.php:173
1603
  msgid ""
1604
  "Your password must contain at least one lowercase letter, one capital letter "
1605
  "and one number"
1606
  msgstr ""
1607
 
1608
- #: core/um-actions-account.php:165
1609
  msgid "Your username is invalid"
1610
  msgstr ""
1611
 
1612
- #: core/um-actions-account.php:172
1613
  msgid "You must enter your password"
1614
  msgstr ""
1615
 
1616
- #: core/um-actions-account.php:252
1617
  msgid "Update Privacy"
1618
  msgstr ""
1619
 
1620
- #: core/um-actions-account.php:282
1621
  msgid "Update Account"
1622
  msgstr ""
1623
 
1624
- #: core/um-actions-account.php:312
1625
  msgid "Update Password"
1626
  msgstr ""
1627
 
1628
- #: core/um-actions-account.php:339
1629
  msgid "Email me when"
1630
  msgstr ""
1631
 
1632
- #: core/um-actions-account.php:348
1633
  msgid "Update Notifications"
1634
  msgstr ""
1635
 
1636
- #: core/um-actions-ajax.php:42 core/um-actions-ajax.php:57
1637
- #: core/um-actions-ajax.php:109
1638
  msgid "You can not edit this user"
1639
  msgstr ""
1640
 
1641
- #: core/um-actions-ajax.php:74
1642
  msgid "Invalid parameters"
1643
  msgstr ""
1644
 
1645
- #: core/um-actions-ajax.php:77
1646
  msgid "Invalid coordinates"
1647
  msgstr ""
1648
 
1649
- #: core/um-actions-ajax.php:80
1650
  msgid "Invalid Image file"
1651
  msgstr ""
1652
 
@@ -1658,119 +1669,127 @@ msgstr ""
1658
  msgid "You are not allowed to use this word as your username."
1659
  msgstr ""
1660
 
1661
- #: core/um-actions-form.php:158 core/um-actions-form.php:167
1662
- #: core/um-actions-form.php:171 core/um-actions-form.php:175
1663
- #: core/um-actions-form.php:179
1664
  #, php-format
1665
  msgid "%s is required."
1666
  msgstr ""
1667
 
1668
- #: core/um-actions-form.php:184
1669
  msgid "Please specify account type."
1670
  msgstr ""
1671
 
1672
- #: core/um-actions-form.php:192
1673
  #, php-format
1674
  msgid "%s is required"
1675
  msgstr ""
1676
 
1677
- #: core/um-actions-form.php:198
1678
  #, php-format
1679
  msgid "You are only allowed to enter a maximum of %s words"
1680
  msgstr ""
1681
 
1682
- #: core/um-actions-form.php:204
1683
  #, php-format
1684
  msgid "Your %s must contain at least %s characters"
1685
  msgstr ""
1686
 
1687
- #: core/um-actions-form.php:210
1688
  #, php-format
1689
  msgid "Your %s must contain less than %s characters"
1690
  msgstr ""
1691
 
1692
- #: core/um-actions-form.php:216
1693
  msgid "You can not use HTML tags here"
1694
  msgstr ""
1695
 
1696
- #: core/um-actions-form.php:228
1697
  msgid "Please confirm your password"
1698
  msgstr ""
1699
 
1700
- #: core/um-actions-form.php:231 core/um-actions-password.php:183
1701
  msgid "Your passwords do not match"
1702
  msgstr ""
1703
 
1704
- #: core/um-actions-form.php:237
1705
  #, php-format
1706
  msgid "Please select at least %s choices"
1707
  msgstr ""
1708
 
1709
- #: core/um-actions-form.php:243
1710
  #, php-format
1711
  msgid "You can only select up to %s choices"
1712
  msgstr ""
1713
 
1714
- #: core/um-actions-form.php:258
1715
  msgid "Please enter numbers only in this field"
1716
  msgstr ""
1717
 
1718
- #: core/um-actions-form.php:264
1719
  msgid "Please enter a valid phone number"
1720
  msgstr ""
1721
 
1722
- #: core/um-actions-form.php:270 core/um-actions-form.php:276
1723
- #: core/um-actions-form.php:282 core/um-actions-form.php:288
1724
- #: core/um-actions-form.php:294 core/um-actions-form.php:300
1725
- #: core/um-actions-form.php:306 core/um-actions-form.php:312
1726
- #: core/um-actions-form.php:324
1727
  #, php-format
1728
  msgid "Please enter a valid %s username or profile URL"
1729
  msgstr ""
1730
 
1731
- #: core/um-actions-form.php:318
1732
  msgid "Please enter a valid URL"
1733
  msgstr ""
1734
 
1735
- #: core/um-actions-form.php:331 core/um-actions-form.php:345
1736
  msgid "You must provide a username"
1737
  msgstr ""
1738
 
1739
- #: core/um-actions-form.php:333 core/um-actions-form.php:347
1740
  msgid "Your username is already taken"
1741
  msgstr ""
1742
 
1743
- #: core/um-actions-form.php:335
1744
  msgid "Username cannot be an email"
1745
  msgstr ""
1746
 
1747
- #: core/um-actions-form.php:337 core/um-actions-form.php:351
1748
  msgid "Your username contains invalid characters"
1749
  msgstr ""
1750
 
1751
- #: core/um-actions-form.php:349 core/um-actions-form.php:363
1752
- #: core/um-actions-form.php:365 core/um-actions-form.php:377
1753
- #: core/um-actions-form.php:384
1754
  msgid "This email is already linked to an existing account"
1755
  msgstr ""
1756
 
1757
- #: core/um-actions-form.php:361
1758
  msgid "You must provide your email"
1759
  msgstr ""
1760
 
1761
- #: core/um-actions-form.php:367 core/um-actions-form.php:375
1762
  msgid "This is not a valid email"
1763
  msgstr ""
1764
 
1765
- #: core/um-actions-form.php:369
1766
  msgid "Your email contains invalid characters"
1767
  msgstr ""
1768
 
1769
- #: core/um-actions-form.php:409
1770
  msgid "You must provide a unique value"
1771
  msgstr ""
1772
 
1773
- #: core/um-actions-form.php:423
 
 
 
 
 
 
 
 
1774
  #, php-format
1775
  msgid "Your user description must contain less than %s characters"
1776
  msgstr ""
@@ -1811,11 +1830,11 @@ msgstr ""
1811
  msgid "This action has been prevented for security measures."
1812
  msgstr ""
1813
 
1814
- #: core/um-actions-login.php:239
1815
  msgid "Keep me signed in"
1816
  msgstr ""
1817
 
1818
- #: core/um-actions-login.php:273
1819
  msgid "Forgot your password?"
1820
  msgstr ""
1821
 
@@ -1852,94 +1871,94 @@ msgstr ""
1852
  msgid "Last Page"
1853
  msgstr ""
1854
 
1855
- #: core/um-actions-misc.php:57 core/um-actions-misc.php:92
1856
  msgid "Registration is currently disabled"
1857
  msgstr ""
1858
 
1859
- #: core/um-actions-misc.php:68
1860
  msgid "Your account was updated successfully."
1861
  msgstr ""
1862
 
1863
- #: core/um-actions-misc.php:72
1864
  msgid "You have successfully changed your password."
1865
  msgstr ""
1866
 
1867
- #: core/um-actions-misc.php:76
1868
  msgid "Your account is now active! You can login."
1869
  msgstr ""
1870
 
1871
- #: core/um-actions-misc.php:88
1872
  msgid "An error has been encountered"
1873
  msgstr ""
1874
 
1875
- #: core/um-actions-misc.php:96 core/um-filters-login.php:33
1876
  msgid "This email address has been blocked."
1877
  msgstr ""
1878
 
1879
- #: core/um-actions-misc.php:100
1880
  msgid "We do not accept registrations from that domain."
1881
  msgstr ""
1882
 
1883
- #: core/um-actions-misc.php:104 core/um-filters-login.php:36
1884
  msgid "Your IP address has been blocked."
1885
  msgstr ""
1886
 
1887
- #: core/um-actions-misc.php:108 core/um-filters-login.php:78
1888
  msgid "Your account has been disabled."
1889
  msgstr ""
1890
 
1891
- #: core/um-actions-misc.php:112 core/um-filters-login.php:81
1892
  msgid "Your account has not been approved yet."
1893
  msgstr ""
1894
 
1895
- #: core/um-actions-misc.php:116 core/um-filters-login.php:84
1896
  msgid "Your account is awaiting e-mail verification."
1897
  msgstr ""
1898
 
1899
- #: core/um-actions-misc.php:120 core/um-filters-login.php:87
1900
  msgid "Your membership request has been rejected."
1901
  msgstr ""
1902
 
1903
- #: core/um-actions-password.php:97 core/um-actions-password.php:153
1904
- #: core/um-form.php:130
1905
  msgid "Hello, spam bot!"
1906
  msgstr ""
1907
 
1908
- #: core/um-actions-password.php:100 core/um-actions-password.php:156
1909
- #: core/um-form.php:133
1910
  msgid ""
1911
  "Whoa, slow down! You're seeing this message because you tried to submit a "
1912
  "form too fast and we think you might be a spam bot. If you are a real human "
1913
  "being please wait a few seconds before submitting the form. Thanks!"
1914
  msgstr ""
1915
 
1916
- #: core/um-actions-password.php:103
1917
  msgid "Please provide your username or email"
1918
  msgstr ""
1919
 
1920
- #: core/um-actions-password.php:109
1921
  msgid "We can't find an account registered with that address or username"
1922
  msgstr ""
1923
 
1924
- #: core/um-actions-password.php:128
1925
  msgid ""
1926
  "You have reached the limit for requesting password change for this user "
1927
  "already. Contact support if you cannot open the email"
1928
  msgstr ""
1929
 
1930
- #: core/um-actions-password.php:159
1931
  msgid "You must enter a new password"
1932
  msgstr ""
1933
 
1934
- #: core/um-actions-password.php:179
1935
  msgid "You must confirm your new password"
1936
  msgstr ""
1937
 
1938
- #: core/um-actions-password.php:237
1939
  msgid "Reset my password"
1940
  msgstr ""
1941
 
1942
- #: core/um-actions-password.php:264
1943
  msgid "Change my password"
1944
  msgstr ""
1945
 
@@ -1947,32 +1966,32 @@ msgstr ""
1947
  msgid "You are not allowed to edit this user."
1948
  msgstr ""
1949
 
1950
- #: core/um-actions-profile.php:194 core/um-builtin.php:954
1951
  msgid "Change your cover photo"
1952
  msgstr ""
1953
 
1954
- #: core/um-actions-profile.php:208
1955
  msgid "Change cover photo"
1956
  msgstr ""
1957
 
1958
- #: core/um-actions-profile.php:250
1959
  msgid "Upload a cover photo"
1960
  msgstr ""
1961
 
1962
- #: core/um-actions-profile.php:323
1963
  msgid "Upload photo"
1964
  msgstr ""
1965
 
1966
- #: core/um-actions-profile.php:334 core/um-fields.php:1385
1967
- #: core/um-fields.php:1420
1968
  msgid "Change photo"
1969
  msgstr ""
1970
 
1971
- #: core/um-actions-profile.php:335
1972
  msgid "Remove photo"
1973
  msgstr ""
1974
 
1975
- #: core/um-actions-profile.php:406
1976
  msgid "Tell us a bit about yourself..."
1977
  msgstr ""
1978
 
@@ -1989,11 +2008,11 @@ msgstr ""
1989
  msgid "My Account"
1990
  msgstr ""
1991
 
1992
- #: core/um-actions-profile.php:504 core/um-actions-user.php:76
1993
  msgid "Logout"
1994
  msgstr ""
1995
 
1996
- #: core/um-actions-user.php:75
1997
  msgid "Your account"
1998
  msgstr ""
1999
 
@@ -2150,7 +2169,7 @@ msgstr ""
2150
  msgid "Everyone"
2151
  msgstr ""
2152
 
2153
- #: core/um-builtin.php:551 core/um-user.php:800
2154
  msgid "Only me"
2155
  msgstr ""
2156
 
@@ -4184,71 +4203,71 @@ msgstr ""
4184
  msgid "Less than 1 year old"
4185
  msgstr ""
4186
 
4187
- #: core/um-fields.php:564
4188
  msgid "Custom Field"
4189
  msgstr ""
4190
 
4191
- #: core/um-fields.php:835
4192
  msgid "Please upload a valid image!"
4193
  msgstr ""
4194
 
4195
- #: core/um-fields.php:842 core/um-fields.php:863
4196
  msgid "Upload"
4197
  msgstr ""
4198
 
4199
- #: core/um-fields.php:843
4200
  msgid "Sorry this is not a valid image."
4201
  msgstr ""
4202
 
4203
- #: core/um-fields.php:844
4204
  msgid "This image is too large!"
4205
  msgstr ""
4206
 
4207
- #: core/um-fields.php:845
4208
  msgid "This image is too small!"
4209
  msgstr ""
4210
 
4211
- #: core/um-fields.php:846
4212
  msgid "You can only upload one image"
4213
  msgstr ""
4214
 
4215
- #: core/um-fields.php:1093
4216
  msgid "Current Password"
4217
  msgstr ""
4218
 
4219
- #: core/um-fields.php:1122
4220
  msgid "New Password"
4221
  msgstr ""
4222
 
4223
- #: core/um-fields.php:1154
4224
  #, php-format
4225
  msgid "Confirm %s"
4226
  msgstr ""
4227
 
4228
- #: core/um-fields.php:1366 core/um-fields.php:1450
4229
  msgid "Upload Photo"
4230
  msgstr ""
4231
 
4232
- #: core/um-fields.php:1420 core/um-fields.php:1508
4233
  msgid "Processing..."
4234
  msgstr ""
4235
 
4236
- #: core/um-fields.php:1466 core/um-fields.php:1508
4237
  msgid "Change file"
4238
  msgstr ""
4239
 
4240
- #: core/um-fields.php:1508
4241
  msgid "Save"
4242
  msgstr ""
4243
 
4244
- #: core/um-fields.php:2254
4245
  #, php-format
4246
  msgid ""
4247
  "Your profile is looking a little empty. Why not <a href=\"%s\">add</a> some "
4248
  "information!"
4249
  msgstr ""
4250
 
4251
- #: core/um-fields.php:2256
4252
  msgid "This user has not added any information to their profile yet."
4253
  msgstr ""
4254
 
@@ -4256,20 +4275,20 @@ msgstr ""
4256
  msgid "This media type is not recognized."
4257
  msgstr ""
4258
 
4259
- #: core/um-files.php:382
4260
  msgid "Your image is invalid or too large!"
4261
  msgstr ""
4262
 
4263
- #: core/um-files.php:388 core/um-files.php:390
4264
  #, php-format
4265
  msgid "Your photo is too small. It must be at least %spx wide."
4266
  msgstr ""
4267
 
4268
- #: core/um-files.php:442
4269
  msgid "Ultimate Member: Not a valid temp file"
4270
  msgstr ""
4271
 
4272
- #: core/um-files.php:537 core/um-files.php:541
4273
  msgid "Unauthorized to do this attempt."
4274
  msgstr ""
4275
 
@@ -4293,29 +4312,25 @@ msgstr ""
4293
  msgid "Required"
4294
  msgstr ""
4295
 
4296
- #: core/um-filters-fields.php:21
4297
- msgid "Age"
4298
- msgstr ""
4299
-
4300
- #: core/um-filters-fields.php:32
4301
  msgid "Invalid soundcloud track ID"
4302
  msgstr ""
4303
 
4304
- #: core/um-filters-fields.php:91
4305
  #, php-format
4306
  msgid "Joined %s"
4307
  msgstr ""
4308
 
4309
- #: core/um-filters-fields.php:100
4310
  #, php-format
4311
  msgid "Last login: %s"
4312
  msgstr ""
4313
 
4314
- #: core/um-filters-fields.php:162
4315
  msgid "This file has been removed."
4316
  msgstr ""
4317
 
4318
- #: core/um-filters-fields.php:183
4319
  msgid "Untitled photo"
4320
  msgstr ""
4321
 
@@ -4368,7 +4383,7 @@ msgstr ""
4368
  msgid "Login as this user"
4369
  msgstr ""
4370
 
4371
- #: core/um-form.php:110 core/um-form.php:114
4372
  msgid "This is not possible for security reasons."
4373
  msgstr ""
4374
 
@@ -4388,11 +4403,11 @@ msgstr ""
4388
  msgid "Select the member roles that can see this link"
4389
  msgstr ""
4390
 
4391
- #: core/um-password.php:32
4392
  msgid "This is not a valid hash, or it has expired."
4393
  msgstr ""
4394
 
4395
- #: core/um-permalinks.php:162
4396
  msgid "This activation link is expired or have already been used."
4397
  msgstr ""
4398
 
@@ -4404,11 +4419,11 @@ msgstr ""
4404
  msgid "Login"
4405
  msgstr ""
4406
 
4407
- #: core/um-short-functions.php:374
4408
  msgid "date submitted"
4409
  msgstr ""
4410
 
4411
- #: core/um-short-functions.php:379
4412
  msgid "(empty)"
4413
  msgstr ""
4414
 
@@ -4516,15 +4531,15 @@ msgstr ""
4516
  msgid "Comments"
4517
  msgstr ""
4518
 
4519
- #: core/um-user.php:75
4520
  msgid "Assign or change the community role for this user"
4521
  msgstr ""
4522
 
4523
- #: core/um-user.php:248
4524
  msgid "Membership Rejected"
4525
  msgstr ""
4526
 
4527
- #: core/um-user.php:252
4528
  msgid "Membership Inactive"
4529
  msgstr ""
4530
 
@@ -4831,27 +4846,29 @@ msgstr ""
4831
 
4832
  #: um-config.php:230 um-config.php:240 um-config.php:264 um-config.php:274
4833
  #: um-config.php:284 um-config.php:294 um-config.php:317 um-config.php:326
4834
- #: um-config.php:337 um-config.php:347 um-config.php:357 um-config.php:914
4835
- #: um-config.php:947 um-config.php:981 um-config.php:1407 um-config.php:1495
4836
- #: um-config.php:1521 um-config.php:1576 um-config.php:1586 um-config.php:1596
4837
- #: um-config.php:1606 um-config.php:1638 um-config.php:1648 um-config.php:1663
4838
- #: um-config.php:1675 um-config.php:1722 um-config.php:1800 um-config.php:1902
4839
- #: um-config.php:1930 um-config.php:1940 um-config.php:1987 um-config.php:1997
4840
- #: um-config.php:2020 um-config.php:2030 um-config.php:2040 um-config.php:2050
4841
- #: um-config.php:2060 um-config.php:2070 um-config.php:2097 um-config.php:2106
 
4842
  msgid "On"
4843
  msgstr ""
4844
 
4845
  #: um-config.php:231 um-config.php:241 um-config.php:265 um-config.php:275
4846
  #: um-config.php:285 um-config.php:295 um-config.php:318 um-config.php:327
4847
- #: um-config.php:338 um-config.php:348 um-config.php:358 um-config.php:915
4848
- #: um-config.php:948 um-config.php:982 um-config.php:1408 um-config.php:1496
4849
- #: um-config.php:1522 um-config.php:1577 um-config.php:1587 um-config.php:1597
4850
- #: um-config.php:1607 um-config.php:1639 um-config.php:1649 um-config.php:1664
4851
- #: um-config.php:1676 um-config.php:1723 um-config.php:1801 um-config.php:1903
4852
- #: um-config.php:1931 um-config.php:1941 um-config.php:1988 um-config.php:1998
4853
- #: um-config.php:2021 um-config.php:2031 um-config.php:2041 um-config.php:2051
4854
- #: um-config.php:2061 um-config.php:2071 um-config.php:2098 um-config.php:2107
 
4855
  msgid "Off"
4856
  msgstr ""
4857
 
@@ -5003,1061 +5020,1083 @@ msgstr ""
5003
  msgid "Add New URL"
5004
  msgstr ""
5005
 
5006
- #: um-config.php:418
 
 
 
 
 
 
 
 
5007
  msgid "Allow Backend Login Screen for Guests"
5008
  msgstr ""
5009
 
5010
- #: um-config.php:420
5011
  msgid ""
5012
  "Control whether guests are able to access the WP-admin login screen or not"
5013
  msgstr ""
5014
 
5015
- #: um-config.php:428
5016
  msgid "Disable Admin Login via Frontend"
5017
  msgstr ""
5018
 
5019
- #: um-config.php:430
5020
  msgid ""
5021
  "DO NOT turn this option on if you have set the option \"Allow Backend Login "
5022
  "Screen for Guests\" to NO. This will result in being locked out of admin."
5023
  msgstr ""
5024
 
5025
- #: um-config.php:439
5026
  msgid "Redirect to alternative login page"
5027
  msgstr ""
5028
 
5029
- #: um-config.php:440
5030
  msgid ""
5031
  "If you disable backend access to login screen, specify here where a user "
5032
  "will be redirected"
5033
  msgstr ""
5034
 
5035
- #: um-config.php:452 um-config.php:484
5036
  msgid "Custom URL"
5037
  msgstr ""
5038
 
5039
- #: um-config.php:453 um-config.php:485
5040
  msgid ""
5041
  "Enter an alternate url here to redirect a user If they try to access the "
5042
  "backend register screen"
5043
  msgstr ""
5044
 
5045
- #: um-config.php:460
5046
  msgid "Allow Backend Register Screen for Guests"
5047
  msgstr ""
5048
 
5049
- #: um-config.php:462
5050
  msgid ""
5051
  "Control whether guests are able to access the WP-admin register screen or not"
5052
  msgstr ""
5053
 
5054
- #: um-config.php:471
5055
  msgid "Redirect to alternative register page"
5056
  msgstr ""
5057
 
5058
- #: um-config.php:472
5059
  msgid ""
5060
  "If you disable backend access to register screen, specify here where a user "
5061
  "will be redirected"
5062
  msgstr ""
5063
 
5064
- #: um-config.php:492
5065
  msgid "Enable the Access Control widget for Admins only?"
5066
  msgstr ""
5067
 
5068
- #: um-config.php:501
5069
  msgid "Enable the Reset Password Limit?"
5070
  msgstr ""
5071
 
5072
- #: um-config.php:510
5073
  msgid "Reset Password Limit"
5074
  msgstr ""
5075
 
5076
- #: um-config.php:511
5077
  msgid ""
5078
  "Set the maximum reset password limit. If reached the maximum limit, user "
5079
  "will be locked from using this."
5080
  msgstr ""
5081
 
5082
- #: um-config.php:521
5083
  msgid "Disable the Reset Password Limit for Admins only?"
5084
  msgstr ""
5085
 
5086
- #: um-config.php:531
5087
  msgid "Whitelisted Backend IPs"
5088
  msgstr ""
5089
 
5090
- #: um-config.php:532
5091
  msgid ""
5092
  "Always allow the specified IP addresses to access the backend login screen "
5093
  "and WP-admin to avoid being locked from site backend."
5094
  msgstr ""
5095
 
5096
- #: um-config.php:538
5097
  msgid "Blocked IP Addresses"
5098
  msgstr ""
5099
 
5100
- #: um-config.php:539
5101
  msgid ""
5102
  "This will block the listed IPs from signing up or signing in to the site, "
5103
  "you can use full IP numbers or target specific range with a wildcard"
5104
  msgstr ""
5105
 
5106
- #: um-config.php:545
5107
  msgid "Blocked Email Addresses"
5108
  msgstr ""
5109
 
5110
- #: um-config.php:546
5111
  msgid ""
5112
  "This will block the specified e-mail addresses from being able to sign up or "
5113
  "sign in to your site. To block an entire domain, use something like *@domain."
5114
  "com"
5115
  msgstr ""
5116
 
5117
- #: um-config.php:552
5118
  msgid "Blacklist Words"
5119
  msgstr ""
5120
 
5121
- #: um-config.php:553
5122
  msgid ""
5123
  "This option lets you specify blacklist of words to prevent anyone from "
5124
  "signing up with such a word as their username"
5125
  msgstr ""
5126
 
5127
- #: um-config.php:568
5128
  msgid "Emails"
5129
  msgstr ""
5130
 
5131
- #: um-config.php:574
5132
  msgid "Mail appears from"
5133
  msgstr ""
5134
 
5135
- #: um-config.php:575
5136
  msgid "e.g. Site Name"
5137
  msgstr ""
5138
 
5139
- #: um-config.php:582
5140
  msgid "Mail appears from address"
5141
  msgstr ""
5142
 
5143
- #: um-config.php:583 um-config.php:905
5144
  msgid "e.g. admin@companyname.com"
5145
  msgstr ""
5146
 
5147
- #: um-config.php:590
5148
  msgid "Use HTML for E-mails?"
5149
  msgstr ""
5150
 
5151
- #: um-config.php:592
5152
  msgid ""
5153
  "If you enable HTML for e-mails, you can customize the HTML e-mail templates "
5154
  "found in <strong>templates/email</strong> folder."
5155
  msgstr ""
5156
 
5157
- #: um-config.php:598 um-config.php:606 um-config.php:616
5158
  msgid "Account Welcome Email"
5159
  msgstr ""
5160
 
5161
- #: um-config.php:600
5162
  msgid ""
5163
  "Whether to send the user an email when his account is automatically approved"
5164
  msgstr ""
5165
 
5166
- #: um-config.php:607 um-config.php:642 um-config.php:674 um-config.php:706
5167
- #: um-config.php:742 um-config.php:773 um-config.php:804 um-config.php:835
5168
- #: um-config.php:867 um-config.php:922 um-config.php:955 um-config.php:989
5169
  msgid "Subject Line"
5170
  msgstr ""
5171
 
5172
- #: um-config.php:610 um-config.php:645 um-config.php:677 um-config.php:709
5173
- #: um-config.php:745 um-config.php:776 um-config.php:807 um-config.php:838
5174
- #: um-config.php:870 um-config.php:925 um-config.php:958 um-config.php:992
5175
  msgid "This is the subject line of the e-mail"
5176
  msgstr ""
5177
 
5178
- #: um-config.php:617 um-config.php:652 um-config.php:684 um-config.php:716
5179
- #: um-config.php:752 um-config.php:783 um-config.php:814 um-config.php:845
5180
- #: um-config.php:877 um-config.php:932 um-config.php:965 um-config.php:999
5181
  msgid "Message Body"
5182
  msgstr ""
5183
 
5184
- #: um-config.php:633 um-config.php:641 um-config.php:651
5185
  msgid "Account Activation Email"
5186
  msgstr ""
5187
 
5188
- #: um-config.php:635
5189
  msgid ""
5190
  "Whether to send the user an email when his account needs e-mail activation"
5191
  msgstr ""
5192
 
5193
- #: um-config.php:665 um-config.php:673 um-config.php:683
5194
  msgid "Pending Review Email"
5195
  msgstr ""
5196
 
5197
- #: um-config.php:667
5198
  msgid "Whether to send the user an email when his account needs admin review"
5199
  msgstr ""
5200
 
5201
- #: um-config.php:697 um-config.php:705 um-config.php:715
5202
  msgid "Account Approved Email"
5203
  msgstr ""
5204
 
5205
- #: um-config.php:699
5206
  msgid "Whether to send the user an email when his account is approved"
5207
  msgstr ""
5208
 
5209
- #: um-config.php:733 um-config.php:741 um-config.php:751
5210
  msgid "Account Rejected Email"
5211
  msgstr ""
5212
 
5213
- #: um-config.php:735
5214
  msgid "Whether to send the user an email when his account is rejected"
5215
  msgstr ""
5216
 
5217
- #: um-config.php:764 um-config.php:772 um-config.php:782
5218
  msgid "Account Deactivated Email"
5219
  msgstr ""
5220
 
5221
- #: um-config.php:766
5222
  msgid "Whether to send the user an email when his account is deactivated"
5223
  msgstr ""
5224
 
5225
- #: um-config.php:795 um-config.php:803 um-config.php:813
5226
  msgid "Account Deleted Email"
5227
  msgstr ""
5228
 
5229
- #: um-config.php:797
5230
  msgid "Whether to send the user an email when his account is deleted"
5231
  msgstr ""
5232
 
5233
- #: um-config.php:826 um-config.php:834 um-config.php:844
5234
  msgid "Password Reset Email"
5235
  msgstr ""
5236
 
5237
- #: um-config.php:828 um-config.php:860
5238
  msgid ""
5239
- "Whether to send the user an email when he request to reset password "
5240
- "(Recommended, please keep on)"
5241
  msgstr ""
5242
 
5243
- #: um-config.php:858 um-config.php:866 um-config.php:876
5244
  msgid "Password Changed Email"
5245
  msgstr ""
5246
 
5247
- #: um-config.php:903
 
 
 
 
 
 
5248
  msgid "Admin E-mail Address"
5249
  msgstr ""
5250
 
5251
- #: um-config.php:911 um-config.php:921 um-config.php:931
5252
  msgid "New User Notification"
5253
  msgstr ""
5254
 
5255
- #: um-config.php:913
5256
  msgid "Whether to receive notification when a new user account is approved"
5257
  msgstr ""
5258
 
5259
- #: um-config.php:938 um-config.php:972 um-config.php:1002
5260
  msgid "This is the content of the e-mail"
5261
  msgstr ""
5262
 
5263
- #: um-config.php:944 um-config.php:954 um-config.php:964
5264
  msgid "Account Needs Review Notification"
5265
  msgstr ""
5266
 
5267
- #: um-config.php:946
5268
  msgid "Whether to receive notification when an account needs admin review"
5269
  msgstr ""
5270
 
5271
- #: um-config.php:978 um-config.php:988 um-config.php:998
5272
  msgid "Account Deletion Notification"
5273
  msgstr ""
5274
 
5275
- #: um-config.php:980
5276
  msgid "Whether to receive notification when an account is deleted"
5277
  msgstr ""
5278
 
5279
- #: um-config.php:1016
5280
  msgid "Uploads"
5281
  msgstr ""
5282
 
5283
- #: um-config.php:1022
5284
  msgid "Profile Photo Maximum File Size (bytes)"
5285
  msgstr ""
5286
 
5287
- #: um-config.php:1023
5288
  msgid "Sets a maximum size for the uploaded photo"
5289
  msgstr ""
5290
 
5291
- #: um-config.php:1030
5292
  msgid "Cover Photo Maximum File Size (bytes)"
5293
  msgstr ""
5294
 
5295
- #: um-config.php:1031
5296
  msgid "Sets a maximum size for the uploaded cover"
5297
  msgstr ""
5298
 
5299
- #: um-config.php:1038