mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- 2.0.55 hotfix for profile restriction options;
This commit is contained in:
@@ -7,7 +7,7 @@ Ultimate Member is the #1 user profile & membership plugin for WordPress. The pl
|
|||||||
|
|
||||||
| Latest Version |Requires at least|Stable Tag|
|
| Latest Version |Requires at least|Stable Tag|
|
||||||
| :------------: |:------------:|:------------:|
|
| :------------: |:------------:|:------------:|
|
||||||
| 2.0.54 | WordPress 4.9 or higher| 2.0.54 |
|
| 2.0.55 | WordPress 4.9 or higher| 2.0.55 |
|
||||||
|
|
||||||
|
|
||||||
Features of the plugin include:
|
Features of the plugin include:
|
||||||
@@ -48,7 +48,7 @@ GNU Version 2 or Any Later Version
|
|||||||
|
|
||||||
Releases
|
Releases
|
||||||
====================
|
====================
|
||||||
[Official Release Version: 2.0.54](https://github.com/ultimatemember/ultimatemember/releases/tag/2.0.54).
|
[Official Release Version: 2.0.55](https://github.com/ultimatemember/ultimatemember/releases/tag/2.0.55).
|
||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
====================
|
====================
|
||||||
|
|||||||
@@ -550,6 +550,7 @@ if ( ! class_exists( 'um\core\Access' ) ) {
|
|||||||
|
|
||||||
//exclude from privacy UM default pages (except Members list and User(Profile) page)
|
//exclude from privacy UM default pages (except Members list and User(Profile) page)
|
||||||
if ( ! empty( $post->post_type ) && $post->post_type == 'page' ) {
|
if ( ! empty( $post->post_type ) && $post->post_type == 'page' ) {
|
||||||
|
|
||||||
if ( um_is_core_post( $post, 'login' ) || um_is_core_post( $post, 'register' ) ||
|
if ( um_is_core_post( $post, 'login' ) || um_is_core_post( $post, 'register' ) ||
|
||||||
um_is_core_post( $post, 'account' ) || um_is_core_post( $post, 'logout' ) ||
|
um_is_core_post( $post, 'account' ) || um_is_core_post( $post, 'logout' ) ||
|
||||||
um_is_core_post( $post, 'password-reset' ) || ( is_user_logged_in() && um_is_core_post( $post, 'user' ) ) )
|
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' ) ) {
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
//set default redirect if Profile page is restricted for not-logged in users
|
||||||
|
if ( ! is_user_logged_in() && um_is_core_post( $post, 'user' ) && $restriction['_um_accessible'] == '2' ) {
|
||||||
|
if ( isset( $restriction['_um_access_roles'] ) ) {
|
||||||
|
$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() ) );
|
||||||
|
} else {
|
||||||
|
$restriction = array( '_um_accessible' => '2', '_um_noaccess_action' => '1', '_um_access_redirect' => '1', '_um_access_redirect_url' => get_home_url( get_current_blog_id() ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $restriction;
|
return $restriction;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Ultimate Member\n"
|
"Project-Id-Version: Ultimate Member\n"
|
||||||
"POT-Creation-Date: 2019-07-22 18:18+0300\n"
|
"POT-Creation-Date: 2019-08-16 20:21+0300\n"
|
||||||
"PO-Revision-Date: 2019-07-22 18:18+0300\n"
|
"PO-Revision-Date: 2019-08-16 20:22+0300\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"Language: en_US\n"
|
"Language: en_US\n"
|
||||||
|
|||||||
+6
-1
@@ -6,7 +6,7 @@ Donate link:
|
|||||||
Tags: community, member, membership, user-profile, user-registration
|
Tags: community, member, membership, user-profile, user-registration
|
||||||
Requires at least: 4.9
|
Requires at least: 4.9
|
||||||
Tested up to: 5.2
|
Tested up to: 5.2
|
||||||
Stable tag: 2.0.54
|
Stable tag: 2.0.55
|
||||||
License: GNU Version 2 or Any Later Version
|
License: GNU Version 2 or Any Later Version
|
||||||
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
||||||
|
|
||||||
@@ -139,6 +139,11 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
|
|||||||
|
|
||||||
= 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 =
|
= 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 =
|
||||||
|
|
||||||
|
= 2.0.55: August 16, 2019 =
|
||||||
|
|
||||||
|
* Bugfixes:
|
||||||
|
- Fixed profile privacy for not logged in users, if restriction options set for profile page as visible only for logged in
|
||||||
|
|
||||||
= 2.0.54: July 22, 2019 =
|
= 2.0.54: July 22, 2019 =
|
||||||
|
|
||||||
* Enhancements:
|
* Enhancements:
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
Plugin Name: Ultimate Member
|
Plugin Name: Ultimate Member
|
||||||
Plugin URI: http://ultimatemember.com/
|
Plugin URI: http://ultimatemember.com/
|
||||||
Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
|
Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
|
||||||
Version: 2.0.54
|
Version: 2.0.55
|
||||||
Author: Ultimate Member
|
Author: Ultimate Member
|
||||||
Author URI: http://ultimatemember.com/
|
Author URI: http://ultimatemember.com/
|
||||||
Text Domain: ultimate-member
|
Text Domain: ultimate-member
|
||||||
|
|||||||
Reference in New Issue
Block a user