Version Description
Download this release
Release Info
Developer | champsupertramp |
Plugin | Ultimate Member – User Profile & Membership Plugin |
Version | 1.3.70 |
Comparing to | |
See all releases |
Code changes from version 1.3.69 to 1.3.70
- core/um-actions-password.php +5 -3
- core/um-short-functions.php +6 -0
- index.php +1 -1
- readme.txt +10 -1
core/um-actions-password.php
CHANGED
@@ -158,10 +158,12 @@
|
|
158 |
if ( $form_timestamp == '' && um_get_option('enable_timebot') == 1 )
|
159 |
wp_die( __('Hello, spam bot!') );
|
160 |
|
161 |
-
if ( $live_timestamp - $form_timestamp < 3 && um_get_option('enable_timebot') == 1 )
|
162 |
wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!') );
|
|
|
|
|
163 |
|
164 |
-
if ( isset( $args['user_password'] ) &&
|
165 |
$ultimatemember->form->add_error('user_password', __('You must enter a new password','ultimatemember') );
|
166 |
}
|
167 |
|
@@ -181,7 +183,7 @@
|
|
181 |
|
182 |
}
|
183 |
|
184 |
-
if ( isset( $args['confirm_user_password'] ) &&
|
185 |
$ultimatemember->form->add_error('confirm_user_password', __('You must confirm your new password','ultimatemember') );
|
186 |
}
|
187 |
|
158 |
if ( $form_timestamp == '' && um_get_option('enable_timebot') == 1 )
|
159 |
wp_die( __('Hello, spam bot!') );
|
160 |
|
161 |
+
if ( $live_timestamp - $form_timestamp < 3 && um_get_option('enable_timebot') == 1 ){
|
162 |
wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!') );
|
163 |
+
}
|
164 |
+
|
165 |
|
166 |
+
if ( isset( $args['user_password'] ) && empty( $args['user_password'] ) ) {
|
167 |
$ultimatemember->form->add_error('user_password', __('You must enter a new password','ultimatemember') );
|
168 |
}
|
169 |
|
183 |
|
184 |
}
|
185 |
|
186 |
+
if ( isset( $args['confirm_user_password'] ) && empty( $args['confirm_user_password'] ) ) {
|
187 |
$ultimatemember->form->add_error('confirm_user_password', __('You must confirm your new password','ultimatemember') );
|
188 |
}
|
189 |
|
core/um-short-functions.php
CHANGED
@@ -1581,13 +1581,19 @@ function um_fetch_user( $user_id ) {
|
|
1581 |
break;
|
1582 |
|
1583 |
case 'cover_photo':
|
|
|
|
|
|
|
1584 |
if ( um_profile('cover_photo') ) {
|
1585 |
$cover_uri = um_get_cover_uri( um_profile('cover_photo'), $attrs );
|
1586 |
} else if( um_profile('synced_cover_photo') ) {
|
1587 |
$cover_uri = um_profile('synced_cover_photo');
|
1588 |
}else{
|
1589 |
$cover_uri = um_get_default_cover_uri();
|
|
|
1590 |
}
|
|
|
|
|
1591 |
|
1592 |
if ( $cover_uri )
|
1593 |
return '<img src="'. $cover_uri .'" alt="" />';
|
1581 |
break;
|
1582 |
|
1583 |
case 'cover_photo':
|
1584 |
+
|
1585 |
+
$is_default = false;
|
1586 |
+
|
1587 |
if ( um_profile('cover_photo') ) {
|
1588 |
$cover_uri = um_get_cover_uri( um_profile('cover_photo'), $attrs );
|
1589 |
} else if( um_profile('synced_cover_photo') ) {
|
1590 |
$cover_uri = um_profile('synced_cover_photo');
|
1591 |
}else{
|
1592 |
$cover_uri = um_get_default_cover_uri();
|
1593 |
+
$is_default = true;
|
1594 |
}
|
1595 |
+
|
1596 |
+
$cover_uri = apply_filters('um_user_cover_photo_uri__filter', $cover_uri, $is_default, $attrs );
|
1597 |
|
1598 |
if ( $cover_uri )
|
1599 |
return '<img src="'. $cover_uri .'" alt="" />';
|
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.
|
7 |
Author: Ultimate Member
|
8 |
Author URI: http://ultimatemember.com/
|
9 |
Text Domain: ultimatemember
|
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.70
|
7 |
Author: Ultimate Member
|
8 |
Author URI: http://ultimatemember.com/
|
9 |
Text Domain: ultimatemember
|
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.6.1
|
9 |
|
10 |
-
Stable Tag: 1.3.
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
@@ -149,6 +149,15 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
|
|
149 |
|
150 |
== Changelog ==
|
151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
= 1.3.69: September 08, 2016 =
|
153 |
|
154 |
* Enhancements:
|
7 |
Requires at least: 4.1
|
8 |
Tested up to: 4.6.1
|
9 |
|
10 |
+
Stable Tag: 1.3.70
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
149 |
|
150 |
== Changelog ==
|
151 |
|
152 |
+
= 1.3.70: September 09, 2016 =
|
153 |
+
|
154 |
+
* Enhancements:
|
155 |
+
* Adds a new filter hook to modify the profile `cover photo` uri.
|
156 |
+
* `um_user_cover_photo_uri__filter`
|
157 |
+
* Bugfixes:
|
158 |
+
* Fixes a bug to allow users change their password in account form
|
159 |
+
|
160 |
+
|
161 |
= 1.3.69: September 08, 2016 =
|
162 |
|
163 |
* Enhancements:
|