Ultimate Member – User Profile & Membership Plugin - Version 1.0.68

Version Description

Download this release

Release Info

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

Code changes from version 1.0.67 to 1.0.68

core/um-fields.php CHANGED
@@ -1246,7 +1246,7 @@ class UM_Fields {
1246
 
1247
  $output .= '<div class="um-modal-footer">
1248
  <div class="um-modal-right">
1249
- <a href="#" class="um-modal-btn um-finish-upload image disabled" data-key="'.$key.'" data-change="'.__('Change photo').'" data-processing="'.__('Processing...','ultimatemember').'"> ' . __('Apply','ultimatemember') . '</a>
1250
  <a href="#" class="um-modal-btn alt" data-action="um_remove_modal"> ' . __('Cancel','ultimatemember') . '</a>
1251
  </div>
1252
  <div class="um-clear"></div>
@@ -1292,7 +1292,7 @@ class UM_Fields {
1292
  <span class="filename">' . $this->field_value( $key, $default, $data ) . '</span>
1293
  </a>
1294
  </div>
1295
- </div><a href="#" data-modal="um_upload_single" data-modal-size="'.$modal_size.'" data-modal-copy="1" class="um-button um-btn-auto-width">'. __('Change file') . '</a>';
1296
 
1297
  } else {
1298
 
1246
 
1247
  $output .= '<div class="um-modal-footer">
1248
  <div class="um-modal-right">
1249
+ <a href="#" class="um-modal-btn um-finish-upload image disabled" data-key="'.$key.'" data-change="'.__('Change photo','ultimatemember').'" data-processing="'.__('Processing...','ultimatemember').'"> ' . __('Apply','ultimatemember') . '</a>
1250
  <a href="#" class="um-modal-btn alt" data-action="um_remove_modal"> ' . __('Cancel','ultimatemember') . '</a>
1251
  </div>
1252
  <div class="um-clear"></div>
1292
  <span class="filename">' . $this->field_value( $key, $default, $data ) . '</span>
1293
  </a>
1294
  </div>
1295
+ </div><a href="#" data-modal="um_upload_single" data-modal-size="'.$modal_size.'" data-modal-copy="1" class="um-button um-btn-auto-width">'. __('Change file','ultimatemember') . '</a>';
1296
 
1297
  } else {
1298
 
core/um-files.php CHANGED
@@ -18,6 +18,7 @@ class UM_Files {
18
  'xlsx' => array('icon' => 'um-faicon-file-excel-o', 'color' => '#51BA6A' ),
19
  'zip' => array('icon' => 'um-faicon-file-zip-o' ),
20
  'rar' => array('icon' => 'um-faicon-file-zip-o' ),
 
21
  );
22
 
23
  $this->default_file_fonticon = 'um-faicon-file-o';
@@ -54,6 +55,7 @@ class UM_Files {
54
  $array['xlsx'] = 'XLSX';
55
  $array['zip'] = 'ZIP';
56
  $array['rar'] = 'RAR';
 
57
 
58
  $array = apply_filters('um_allowed_file_types', $array);
59
  return $array;
@@ -316,9 +318,9 @@ class UM_Files {
316
  } elseif ( isset($data['min_size']) && ( $fileinfo['size'] < $data['min_size'] ) ) {
317
  $error = $data['min_size_error'];
318
  } elseif ( isset($data['min_width']) && ( $fileinfo['width'] < $data['min_width'] ) ) {
319
- $error = sprintf(__('Your photo is too small. It must be at least %spx wide.'), $data['min_width']);
320
  } elseif ( isset($data['min_height']) && ( $fileinfo['height'] < $data['min_height'] ) ) {
321
- $error = sprintf(__('Your photo is too small. It must be at least %spx wide.'), $data['min_height']);
322
  }
323
 
324
  return $error;
18
  'xlsx' => array('icon' => 'um-faicon-file-excel-o', 'color' => '#51BA6A' ),
19
  'zip' => array('icon' => 'um-faicon-file-zip-o' ),
20
  'rar' => array('icon' => 'um-faicon-file-zip-o' ),
21
+ 'mp3' => array('icon' => 'um-faicon-file-audio-o' ),
22
  );
23
 
24
  $this->default_file_fonticon = 'um-faicon-file-o';
55
  $array['xlsx'] = 'XLSX';
56
  $array['zip'] = 'ZIP';
57
  $array['rar'] = 'RAR';
58
+ $array['mp3'] = 'MP3';
59
 
60
  $array = apply_filters('um_allowed_file_types', $array);
61
  return $array;
318
  } elseif ( isset($data['min_size']) && ( $fileinfo['size'] < $data['min_size'] ) ) {
319
  $error = $data['min_size_error'];
320
  } elseif ( isset($data['min_width']) && ( $fileinfo['width'] < $data['min_width'] ) ) {
321
+ $error = sprintf(__('Your photo is too small. It must be at least %spx wide.','ultimatemember'), $data['min_width']);
322
  } elseif ( isset($data['min_height']) && ( $fileinfo['height'] < $data['min_height'] ) ) {
323
+ $error = sprintf(__('Your photo is too small. It must be at least %spx wide.','ultimatemember'), $data['min_height']);
324
  }
325
 
326
  return $error;
core/um-short-functions.php CHANGED
@@ -857,7 +857,7 @@ function um_fetch_user( $user_id ) {
857
  ***/
858
  function um_get_user_avatar_url() {
859
  if ( um_profile('profile_photo') ) {
860
- $avatar_uri = um_get_avatar_uri( um_profile('profile_photo'), $attrs );
861
  } else {
862
  $avatar_uri = um_get_default_avatar_uri();
863
  }
857
  ***/
858
  function um_get_user_avatar_url() {
859
  if ( um_profile('profile_photo') ) {
860
+ $avatar_uri = um_get_avatar_uri( um_profile('profile_photo'), 32 );
861
  } else {
862
  $avatar_uri = um_get_default_avatar_uri();
863
  }
core/um-user.php CHANGED
@@ -416,7 +416,7 @@ class UM_User {
416
  ***/
417
  function is_private_profile( $user_id ) {
418
  $privacy = get_user_meta( $user_id, 'profile_privacy', true );
419
- if ( $privacy == __('Only me') ) {
420
  return true;
421
  }
422
  return false;
416
  ***/
417
  function is_private_profile( $user_id ) {
418
  $privacy = get_user_meta( $user_id, 'profile_privacy', true );
419
+ if ( $privacy == __('Only me','ultimatemember') ) {
420
  return true;
421
  }
422
  return false;
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.0.67
7
  Author: Ultimate Member
8
  Author URI: http://ultimatemember.com/
9
  */
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.0.68
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.1
9
 
10
- Stable Tag: 1.0.67
11
 
12
  License: GNU Version 2 or Any Later Version
13
 
@@ -189,6 +189,13 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
189
 
190
  == Changelog ==
191
 
 
 
 
 
 
 
 
192
  = 1.0.67: February 26, 2015 =
193
 
194
  * New: Improved the default HTML e-mail templates design
7
  Requires at least: 4.1
8
  Tested up to: 4.1.1
9
 
10
+ Stable Tag: 1.0.68
11
 
12
  License: GNU Version 2 or Any Later Version
13
 
189
 
190
  == Changelog ==
191
 
192
+ = 1.0.68: February 27, 2015 =
193
+
194
+ * New: added support for mp3 as allowed filetype / upload
195
+ * Fixed: bug with profile privacy option (on non-english sites)
196
+ * Fixed: uncommon php warning caused by um_get_user_avatar_url() function
197
+ * Fixed: new translation corrections
198
+
199
  = 1.0.67: February 26, 2015 =
200
 
201
  * New: Improved the default HTML e-mail templates design