Version Description
Download this release
Release Info
Developer | ultimatemember |
Plugin | Ultimate Member – User Profile & Membership Plugin |
Version | 1.0.32 |
Comparing to | |
See all releases |
Code changes from version 1.0.31 to 1.0.32
- core/um-filters-navmenu.php +1 -1
- core/um-mail.php +6 -0
- core/um-rewrite.php +4 -1
- index.php +1 -1
- readme.txt +7 -1
core/um-filters-navmenu.php
CHANGED
@@ -40,7 +40,7 @@
|
|
40 |
switch( $mode ) {
|
41 |
|
42 |
case 2:
|
43 |
-
if (isset($roles) && !empty($roles)) {
|
44 |
if ( in_array( um_user('role'), (array)$roles) ) {
|
45 |
$visible = true;
|
46 |
} else {
|
40 |
switch( $mode ) {
|
41 |
|
42 |
case 2:
|
43 |
+
if ( is_user_logged_in() && isset($roles) && !empty($roles)) {
|
44 |
if ( in_array( um_user('role'), (array)$roles) ) {
|
45 |
$visible = true;
|
46 |
} else {
|
core/um-mail.php
CHANGED
@@ -50,6 +50,9 @@ class UM_Mail {
|
|
50 |
|
51 |
$search = array(
|
52 |
'{display_name}',
|
|
|
|
|
|
|
53 |
'{username}',
|
54 |
'{email}',
|
55 |
'{password}',
|
@@ -66,6 +69,9 @@ class UM_Mail {
|
|
66 |
|
67 |
$replace = array(
|
68 |
um_user('display_name'),
|
|
|
|
|
|
|
69 |
um_user('user_login'),
|
70 |
um_user('user_email'),
|
71 |
um_user('_um_cool_but_hard_to_guess_plain_pw'),
|
50 |
|
51 |
$search = array(
|
52 |
'{display_name}',
|
53 |
+
'{first_name}',
|
54 |
+
'{last_name}',
|
55 |
+
'{gender}',
|
56 |
'{username}',
|
57 |
'{email}',
|
58 |
'{password}',
|
69 |
|
70 |
$replace = array(
|
71 |
um_user('display_name'),
|
72 |
+
um_user('first_name'),
|
73 |
+
um_user('last_name'),
|
74 |
+
um_user('gender'),
|
75 |
um_user('user_login'),
|
76 |
um_user('user_email'),
|
77 |
um_user('_um_cool_but_hard_to_guess_plain_pw'),
|
core/um-rewrite.php
CHANGED
@@ -39,6 +39,9 @@ class UM_Rewrite {
|
|
39 |
$user = get_post($user_page_id);
|
40 |
$user_slug = $user->post_name;
|
41 |
|
|
|
|
|
|
|
42 |
add_rewrite_rule(
|
43 |
'^'.$user_slug.'/([^/]*)$',
|
44 |
'index.php?page_id='.$user_page_id.'&um_user=$matches[1]',
|
@@ -46,7 +49,7 @@ class UM_Rewrite {
|
|
46 |
);
|
47 |
|
48 |
add_rewrite_rule(
|
49 |
-
'^
|
50 |
'index.php?page_id='.$account_page_id.'&um_tab=$matches[1]',
|
51 |
'top'
|
52 |
);
|
39 |
$user = get_post($user_page_id);
|
40 |
$user_slug = $user->post_name;
|
41 |
|
42 |
+
$account = get_post($account_page_id);
|
43 |
+
$account_slug = $account->post_name;
|
44 |
+
|
45 |
add_rewrite_rule(
|
46 |
'^'.$user_slug.'/([^/]*)$',
|
47 |
'index.php?page_id='.$user_page_id.'&um_user=$matches[1]',
|
49 |
);
|
50 |
|
51 |
add_rewrite_rule(
|
52 |
+
'^'.$account_slug.'/([^/]*)$',
|
53 |
'index.php?page_id='.$account_page_id.'&um_tab=$matches[1]',
|
54 |
'top'
|
55 |
);
|
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ultimate Member
|
4 |
Plugin URI: http://ultimatemember.com/
|
5 |
Description: Ultimate Member is a powerful community and membership plugin that allows you to create beautiful community and membership sites with WordPress
|
6 |
-
Version: 1.0.
|
7 |
Author: Ultimate Member
|
8 |
Author URI: http://ultimatemember.com/
|
9 |
*/
|
3 |
Plugin Name: Ultimate Member
|
4 |
Plugin URI: http://ultimatemember.com/
|
5 |
Description: Ultimate Member is a powerful community and membership plugin that allows you to create beautiful community and membership sites with WordPress
|
6 |
+
Version: 1.0.32
|
7 |
Author: Ultimate Member
|
8 |
Author URI: http://ultimatemember.com/
|
9 |
*/
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Tags: access control, community, communities, conditional fields, conditional lo
|
|
7 |
Requires at least: 4.1
|
8 |
Tested up to: 4.1
|
9 |
|
10 |
-
Stable Tag: 1.0.
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
@@ -170,6 +170,12 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
|
|
170 |
|
171 |
== Changelog ==
|
172 |
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
= 1.0.31: January 29, 2015 =
|
174 |
|
175 |
* Fixed: Issue with custom user page slug resolved [view issue](https://wordpress.org/support/topic/translate-plugin-9)
|
7 |
Requires at least: 4.1
|
8 |
Tested up to: 4.1
|
9 |
|
10 |
+
Stable Tag: 1.0.32
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
170 |
|
171 |
== Changelog ==
|
172 |
|
173 |
+
= 1.0.32: January 30, 2015 =
|
174 |
+
|
175 |
+
* New: added 3 new tags to use in email templates {first_name}, {last_name}, and {gender}
|
176 |
+
* Fixed: Issue with account page permalink resolved - [view issue](https://ultimatemember.com/forums/topic/permalink-bug/)
|
177 |
+
* Fixed: Issue with conditional menu items showing for un-approved users resolved - [view issue](https://ultimatemember.com/forums/topic/registration/)
|
178 |
+
|
179 |
= 1.0.31: January 29, 2015 =
|
180 |
|
181 |
* Fixed: Issue with custom user page slug resolved [view issue](https://wordpress.org/support/topic/translate-plugin-9)
|