Ultimate Member – User Profile & Membership Plugin - Version 1.0.61

Version Description

Download this release

Release Info

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

Code changes from version 1.0.60 to 1.0.61

admin/core/um-admin-enqueue.php CHANGED
@@ -10,7 +10,7 @@ class UM_Admin_Enqueue {
10
 
11
  add_action('admin_enqueue_scripts', array(&$this, 'admin_enqueue_scripts'), 9);
12
 
13
- add_filter('admin_body_class', array(&$this, 'admin_body_class'), 9 );
14
 
15
  add_filter('enter_title_here', array(&$this, 'enter_title_here') );
16
 
@@ -243,9 +243,10 @@ class UM_Admin_Enqueue {
243
  *** @Adds class to our admin pages
244
  ***/
245
  function admin_body_class($classes){
246
- if ( $this->is_UM_admin() )
247
- $classes .= 'um-admin';
248
- return $classes;
 
249
  }
250
 
251
  /***
10
 
11
  add_action('admin_enqueue_scripts', array(&$this, 'admin_enqueue_scripts'), 9);
12
 
13
+ add_filter('admin_body_class', array(&$this, 'admin_body_class'), 999 );
14
 
15
  add_filter('enter_title_here', array(&$this, 'enter_title_here') );
16
 
243
  *** @Adds class to our admin pages
244
  ***/
245
  function admin_body_class($classes){
246
+ if ( $this->is_UM_admin() ) {
247
+ return "$classes um-admin";
248
+ }
249
+ return $classes;
250
  }
251
 
252
  /***
core/um-fields.php CHANGED
@@ -772,7 +772,7 @@ class UM_Fields {
772
  $array['allowed_types'] = implode(',',$array['allowed_types']);
773
  }
774
  if (!isset($array['upload_text'])) $array['upload_text'] = '';
775
- if (!isset($array['button_text'])) $array['button_text'] = __('Upload');
776
  if (!isset($array['extension_error'])) $array['extension_error'] = "Sorry this is not a valid image.";
777
  if (!isset($array['max_size_error'])) $array['max_size_error'] = "This image is too large!";
778
  if (!isset($array['min_size_error'])) $array['min_size_error'] = "This image is too small!";
@@ -793,7 +793,7 @@ class UM_Fields {
793
  $array['allowed_types'] = implode(',',$array['allowed_types']);
794
  }
795
  if (!isset($array['upload_text'])) $array['upload_text'] = '';
796
- if (!isset($array['button_text'])) $array['button_text'] = __('Upload');
797
  if (!isset($array['extension_error'])) $array['extension_error'] = "Sorry this is not a valid file.";
798
  if (!isset($array['max_size_error'])) $array['max_size_error'] = "This file is too large!";
799
  if (!isset($array['min_size_error'])) $array['min_size_error'] = "This file is too small!";
@@ -1372,6 +1372,16 @@ class UM_Fields {
1372
  $options = $ultimatemember->builtin->get ( 'countries' );
1373
  }
1374
 
 
 
 
 
 
 
 
 
 
 
1375
  // add an empty option!
1376
  $output .= '<option value=""></option>';
1377
 
@@ -1470,7 +1480,17 @@ class UM_Fields {
1470
  }
1471
 
1472
  $output .= '<div class="um-field-area">';
1473
-
 
 
 
 
 
 
 
 
 
 
1474
  // add options
1475
  $i = 0;
1476
 
772
  $array['allowed_types'] = implode(',',$array['allowed_types']);
773
  }
774
  if (!isset($array['upload_text'])) $array['upload_text'] = '';
775
+ if (!isset($array['button_text'])) $array['button_text'] = __('Upload','ultimatemember');
776
  if (!isset($array['extension_error'])) $array['extension_error'] = "Sorry this is not a valid image.";
777
  if (!isset($array['max_size_error'])) $array['max_size_error'] = "This image is too large!";
778
  if (!isset($array['min_size_error'])) $array['min_size_error'] = "This image is too small!";
793
  $array['allowed_types'] = implode(',',$array['allowed_types']);
794
  }
795
  if (!isset($array['upload_text'])) $array['upload_text'] = '';
796
+ if (!isset($array['button_text'])) $array['button_text'] = __('Upload','ultimatemember');
797
  if (!isset($array['extension_error'])) $array['extension_error'] = "Sorry this is not a valid file.";
798
  if (!isset($array['max_size_error'])) $array['max_size_error'] = "This file is too large!";
799
  if (!isset($array['min_size_error'])) $array['min_size_error'] = "This file is too small!";
1372
  $options = $ultimatemember->builtin->get ( 'countries' );
1373
  }
1374
 
1375
+ // role field
1376
+ if ( $form_key == 'role' ) {
1377
+ $roles = $ultimatemember->query->get_roles();
1378
+ foreach( $roles as $k => $v ) {
1379
+ if ( in_array( $v, $options ) )
1380
+ $new_roles[$k] = $v;
1381
+ }
1382
+ $options = $new_roles;
1383
+ }
1384
+
1385
  // add an empty option!
1386
  $output .= '<option value=""></option>';
1387
 
1480
  }
1481
 
1482
  $output .= '<div class="um-field-area">';
1483
+
1484
+ // role field
1485
+ if ( $form_key == 'role' ) {
1486
+ $roles = $ultimatemember->query->get_roles();
1487
+ foreach( $roles as $k => $v ) {
1488
+ if ( in_array( $v, $options ) )
1489
+ $new_roles[$k] = $v;
1490
+ }
1491
+ $options = $new_roles;
1492
+ }
1493
+
1494
  // add options
1495
  $i = 0;
1496
 
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.60
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.61
7
  Author: Ultimate Member
8
  Author URI: http://ultimatemember.com/
9
  */
readme.txt CHANGED
@@ -5,9 +5,9 @@ Contributors: ultimatemember
5
  Donate link:
6
  Tags: access control, author, authors, author profile, comments, community, communities, conditional fields, conditional logic, conditional menus, content protection, custom fields, file uploads, form builder, front-end login, front-end registration, hide wp-admin, login, login page, logged-in users, mandrill, member, members, membership, member directory, profile, profiles, profile builder, registration, restriction, restrict content, role creation, role menus, search filters, sign in, sign up, social network, star ratings, toolbar, user, users, user fields, user profiles, user roles
7
  Requires at least: 4.1
8
- Tested up to: 4.1
9
 
10
- Stable Tag: 1.0.60
11
 
12
  License: GNU Version 2 or Any Later Version
13
 
@@ -188,6 +188,12 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
188
 
189
  == Changelog ==
190
 
 
 
 
 
 
 
191
  = 1.0.60: February 18, 2015 =
192
 
193
  * Tweak: added a protection to prevent wp-admin lockout for admin users
5
  Donate link:
6
  Tags: access control, author, authors, author profile, comments, community, communities, conditional fields, conditional logic, conditional menus, content protection, custom fields, file uploads, form builder, front-end login, front-end registration, hide wp-admin, login, login page, logged-in users, mandrill, member, members, membership, member directory, profile, profiles, profile builder, registration, restriction, restrict content, role creation, role menus, search filters, sign in, sign up, social network, star ratings, toolbar, user, users, user fields, user profiles, user roles
7
  Requires at least: 4.1
8
+ Tested up to: 4.1.1
9
 
10
+ Stable Tag: 1.0.61
11
 
12
  License: GNU Version 2 or Any Later Version
13
 
188
 
189
  == Changelog ==
190
 
191
+ = 1.0.61: February 20, 2015 =
192
+
193
+ * Tweak: Upload button text is made translatable
194
+ * Fixed: conflicts with Divi theme
195
+ * Fixed: issue with Roles dropdown field
196
+
197
  = 1.0.60: February 18, 2015 =
198
 
199
  * Tweak: added a protection to prevent wp-admin lockout for admin users