Ultimate Member – User Profile & Membership Plugin - Version 2.0.55

Version Description

Download this release

Release Info

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

Code changes from version 2.0.54 to 2.0.55

includes/core/class-access.php CHANGED
@@ -550,6 +550,7 @@ if ( ! class_exists( 'um\core\Access' ) ) {
550
551
//exclude from privacy UM default pages (except Members list and User(Profile) page)
552
if ( ! empty( $post->post_type ) && $post->post_type == 'page' ) {
553
if ( um_is_core_post( $post, 'login' ) || um_is_core_post( $post, 'register' ) ||
554
um_is_core_post( $post, 'account' ) || um_is_core_post( $post, 'logout' ) ||
555
um_is_core_post( $post, 'password-reset' ) || ( is_user_logged_in() && um_is_core_post( $post, 'user' ) ) )
@@ -600,6 +601,16 @@ if ( ! class_exists( 'um\core\Access' ) ) {
600
601
return false;
602
} else {
603
return $restriction;
604
}
605
}
550
551
//exclude from privacy UM default pages (except Members list and User(Profile) page)
552
if ( ! empty( $post->post_type ) && $post->post_type == 'page' ) {
553
+
554
if ( um_is_core_post( $post, 'login' ) || um_is_core_post( $post, 'register' ) ||
555
um_is_core_post( $post, 'account' ) || um_is_core_post( $post, 'logout' ) ||
556
um_is_core_post( $post, 'password-reset' ) || ( is_user_logged_in() && um_is_core_post( $post, 'user' ) ) )
601
602
return false;
603
} else {
604
+
605
+ //set default redirect if Profile page is restricted for not-logged in users
606
+ if ( ! is_user_logged_in() && um_is_core_post( $post, 'user' ) && $restriction['_um_accessible'] == '2' ) {
607
+ if ( isset( $restriction['_um_access_roles'] ) ) {
608
+ $restriction = array( '_um_accessible' => '2', '_um_access_roles' => $restriction['_um_access_roles'], '_um_noaccess_action' => '1', '_um_access_redirect' => '1', '_um_access_redirect_url' => get_home_url( get_current_blog_id() ) );
609
+ } else {
610
+ $restriction = array( '_um_accessible' => '2', '_um_noaccess_action' => '1', '_um_access_redirect' => '1', '_um_access_redirect_url' => get_home_url( get_current_blog_id() ) );
611
+ }
612
+ }
613
+
614
return $restriction;
615
}
616
}
languages/ultimate-member-en_US.mo CHANGED
Binary file
languages/ultimate-member-en_US.po CHANGED
@@ -1,8 +1,8 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: Ultimate Member\n"
4
- "POT-Creation-Date: 2019-07-22 18:18+0300\n"
5
- "PO-Revision-Date: 2019-07-22 18:18+0300\n"
6
"Last-Translator: \n"
7
"Language-Team: \n"
8
"Language: en_US\n"
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: Ultimate Member\n"
4
+ "POT-Creation-Date: 2019-08-16 20:21+0300\n"
5
+ "PO-Revision-Date: 2019-08-16 20:22+0300\n"
6
"Last-Translator: \n"
7
"Language-Team: \n"
8
"Language: en_US\n"
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link:
6
Tags: community, member, membership, user-profile, user-registration
7
Requires at least: 4.9
8
Tested up to: 5.2
9
- Stable tag: 2.0.54
10
License: GNU Version 2 or Any Later Version
11
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
12
@@ -139,6 +139,11 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
139
140
= Important: UM2.0+ is a significant update to the code base from 1.3.88. Please make sure you take a full-site backup with restore point before updating the plugin =
141
142
= 2.0.54: July 22, 2019 =
143
144
* Enhancements:
6
Tags: community, member, membership, user-profile, user-registration
7
Requires at least: 4.9
8
Tested up to: 5.2
9
+ Stable tag: 2.0.55
10
License: GNU Version 2 or Any Later Version
11
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
12
139
140
= Important: UM2.0+ is a significant update to the code base from 1.3.88. Please make sure you take a full-site backup with restore point before updating the plugin =
141
142
+ = 2.0.55: August 16, 2019 =
143
+
144
+ * Bugfixes:
145
+ - Fixed profile privacy for not logged in users, if restriction options set for profile page as visible only for logged in
146
+
147
= 2.0.54: July 22, 2019 =
148
149
* Enhancements:
ultimate-member.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: 2.0.54
7
Author: Ultimate Member
8
Author URI: http://ultimatemember.com/
9
Text Domain: ultimate-member
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: 2.0.55
7
Author: Ultimate Member
8
Author URI: http://ultimatemember.com/
9
Text Domain: ultimate-member