Ultimate Member – User Profile & Membership Plugin - Version 1.0.91

Version Description

Download this release

Release Info

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

Code changes from version 1.0.90 to 1.0.91

core/um-actions-misc.php CHANGED
@@ -59,6 +59,12 @@
59
  if ( isset( $_REQUEST['updated'] ) && !empty( $_REQUEST['updated'] ) && !$ultimatemember->form->errors ) {
60
  switch( $_REQUEST['updated'] ) {
61
 
 
 
 
 
 
 
62
  case 'account':
63
  $success = __('Your account was updated successfully.','ultimatemember');
64
  break;
59
  if ( isset( $_REQUEST['updated'] ) && !empty( $_REQUEST['updated'] ) && !$ultimatemember->form->errors ) {
60
  switch( $_REQUEST['updated'] ) {
61
 
62
+ default:
63
+ $success = apply_filters("um_custom_success_message_handler", $err, $_REQUEST['updated']);
64
+ if ( !$success )
65
+ $success = __('Thank you!','ultimatemember');
66
+ break;
67
+
68
  case 'account':
69
  $success = __('Your account was updated successfully.','ultimatemember');
70
  break;
core/um-validation.php CHANGED
@@ -5,7 +5,6 @@ class UM_Validation {
5
  function __construct() {
6
 
7
  $this->regex_safe = '/\A[\w\-\.]+\z/';
8
- $this->regex_safe_email = '/\A[\w\-\.\@]+\z/';
9
  $this->regex_phone_number = '/\A[\d\-\.\+\(\)\ ]+\z/';
10
 
11
  }
@@ -54,8 +53,8 @@ class UM_Validation {
54
  *** @space, dash, underscore
55
  ***/
56
  function safe_username( $string ) {
57
- if ( is_email( $string ) && !preg_match( $this->regex_safe_email, $string ) )
58
- return false;
59
  if ( !is_email( $string) && !preg_match( $this->regex_safe, $string ) )
60
  return false;
61
  return true;
5
  function __construct() {
6
 
7
  $this->regex_safe = '/\A[\w\-\.]+\z/';
 
8
  $this->regex_phone_number = '/\A[\d\-\.\+\(\)\ ]+\z/';
9
 
10
  }
53
  *** @space, dash, underscore
54
  ***/
55
  function safe_username( $string ) {
56
+ if ( is_email( $string ) )
57
+ return true;
58
  if ( !is_email( $string) && !preg_match( $this->regex_safe, $string ) )
59
  return false;
60
  return true;
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.90
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.91
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.90
11
 
12
  License: GNU Version 2 or Any Later Version
13
 
@@ -203,6 +203,11 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
203
 
204
  == Changelog ==
205
 
 
 
 
 
 
206
  = 1.0.90: March 19, 2015 =
207
 
208
  * Tweak: minor admin css changes
7
  Requires at least: 4.1
8
  Tested up to: 4.1.1
9
 
10
+ Stable Tag: 1.0.91
11
 
12
  License: GNU Version 2 or Any Later Version
13
 
203
 
204
  == Changelog ==
205
 
206
+ = 1.0.91: March 20, 2015 =
207
+
208
+ * Tweak: featured image in user posts goes to post link
209
+ * Fixed: solved a bug with e-mail validation
210
+
211
  = 1.0.90: March 19, 2015 =
212
 
213
  * Tweak: minor admin css changes
templates/profile/posts-single.php CHANGED
@@ -8,7 +8,7 @@
8
  $image_url = wp_get_attachment_image_src( $image_id, 'full', true );
9
  ?>
10
 
11
- <div class="um-item-img"><a href="#" class="um-photo-modal" data-src="<?php echo $image_url[0]; ?>"><?php echo get_the_post_thumbnail( $post_id, 'medium' ); ?></a></div>
12
 
13
  <?php } ?>
14
 
8
  $image_url = wp_get_attachment_image_src( $image_id, 'full', true );
9
  ?>
10
 
11
+ <div class="um-item-img"><a href="<?php the_permalink(); ?>"><?php echo get_the_post_thumbnail( $post_id, 'medium' ); ?></a></div>
12
 
13
  <?php } ?>
14