Version Description
Download this release
Release Info
Developer | ultimatemember |
Plugin | Ultimate Member – User Profile & Membership Plugin |
Version | 1.1.5 |
Comparing to | |
See all releases |
Code changes from version 1.1.4 to 1.1.5
- admin/templates/extensions.php +7 -0
- core/um-account.php +1 -1
- core/um-cache.php +0 -32
- core/um-query.php +0 -8
- core/um-user.php +2 -0
- index.php +1 -1
- readme.txt +9 -1
admin/templates/extensions.php
CHANGED
@@ -1,5 +1,12 @@
|
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
$premium['user-reviews'] = array(
|
4 |
'url' => 'https://ultimatemember.com/extensions/user-reviews/',
|
5 |
'image' => 'https://ultimatemember.com/wp-content/uploads/2015/03/userrating800x300.png',
|
1 |
<?php
|
2 |
|
3 |
+
$premium['real-time-notifications'] = array(
|
4 |
+
'url' => 'https://ultimatemember.com/extensions/real-time-notifications/',
|
5 |
+
'image' => 'https://ultimatemember.com/wp-content/uploads/2015/04/notifications-01-copy.png',
|
6 |
+
'name' => 'Real-time Notifications',
|
7 |
+
'desc' => 'Add a real-time notification system to your site so users can receive updates and notifications directly on your website as they happen.',
|
8 |
+
);
|
9 |
+
|
10 |
$premium['user-reviews'] = array(
|
11 |
'url' => 'https://ultimatemember.com/extensions/user-reviews/',
|
12 |
'image' => 'https://ultimatemember.com/wp-content/uploads/2015/03/userrating800x300.png',
|
core/um-account.php
CHANGED
@@ -30,7 +30,7 @@ class UM_Account {
|
|
30 |
$tabs[300]['privacy']['icon'] = 'um-faicon-lock';
|
31 |
$tabs[300]['privacy']['title'] = __('Privacy','ultimatemember');
|
32 |
|
33 |
-
$tabs[400]['notifications']['icon'] = 'um-faicon-
|
34 |
$tabs[400]['notifications']['title'] = __('Notifications','ultimatemember');
|
35 |
|
36 |
$tabs[9999]['delete']['icon'] = 'um-faicon-trash-o';
|
30 |
$tabs[300]['privacy']['icon'] = 'um-faicon-lock';
|
31 |
$tabs[300]['privacy']['title'] = __('Privacy','ultimatemember');
|
32 |
|
33 |
+
$tabs[400]['notifications']['icon'] = 'um-faicon-envelope';
|
34 |
$tabs[400]['notifications']['title'] = __('Notifications','ultimatemember');
|
35 |
|
36 |
$tabs[9999]['delete']['icon'] = 'um-faicon-trash-o';
|
core/um-cache.php
CHANGED
@@ -6,10 +6,6 @@ class UM_Cache {
|
|
6 |
|
7 |
add_action( 'init', array(&$this, 'do_not_cache' ) );
|
8 |
|
9 |
-
add_action('um_admin_after_editing_role', array(&$this, 'delete_role_cache'), 10, 2 );
|
10 |
-
|
11 |
-
$this->role_data = get_option('um_cache_role_data');
|
12 |
-
|
13 |
}
|
14 |
|
15 |
/***
|
@@ -22,33 +18,5 @@ class UM_Cache {
|
|
22 |
}
|
23 |
|
24 |
}
|
25 |
-
|
26 |
-
/***
|
27 |
-
*** @clear cached role data
|
28 |
-
***/
|
29 |
-
function delete_role_cache( $post_id, $post ) {
|
30 |
-
$role_slug = $post->post_name;
|
31 |
-
if ( isset( $this->role_data[ $role_slug ] ) ) {
|
32 |
-
unset( $this->role_data[ $role_slug ] );
|
33 |
-
update_option('um_cache_role_data', $this->role_data);
|
34 |
-
}
|
35 |
-
}
|
36 |
-
|
37 |
-
/***
|
38 |
-
*** @get cached role data
|
39 |
-
***/
|
40 |
-
function role_data( $role_slug ) {
|
41 |
-
if ( isset( $this->role_data[ $role_slug ] ) )
|
42 |
-
return $this->role_data[ $role_slug ];
|
43 |
-
return null;
|
44 |
-
}
|
45 |
-
|
46 |
-
/***
|
47 |
-
*** @set role data cache
|
48 |
-
***/
|
49 |
-
function set_role_data( $role_slug, $array ) {
|
50 |
-
$this->role_data[ $role_slug ] = $array;
|
51 |
-
update_option('um_cache_role_data', $this->role_data);
|
52 |
-
}
|
53 |
|
54 |
}
|
6 |
|
7 |
add_action( 'init', array(&$this, 'do_not_cache' ) );
|
8 |
|
|
|
|
|
|
|
|
|
9 |
}
|
10 |
|
11 |
/***
|
18 |
}
|
19 |
|
20 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
}
|
core/um-query.php
CHANGED
@@ -206,11 +206,6 @@ class UM_Query {
|
|
206 |
***/
|
207 |
function role_data( $role_slug ) {
|
208 |
global $wpdb, $ultimatemember;
|
209 |
-
|
210 |
-
// get cache
|
211 |
-
if ( $ultimatemember->cache->role_data( $role_slug ) ) {
|
212 |
-
return $ultimatemember->cache->role_data( $role_slug );
|
213 |
-
}
|
214 |
|
215 |
if ($role_slug == 'admin' || $role_slug == 'member'){
|
216 |
$try = $this->find_post_id('um_role','_um_core',$role_slug);
|
@@ -240,9 +235,6 @@ class UM_Query {
|
|
240 |
$array = $ultimatemember->setup->get_initial_permissions( $role_slug );
|
241 |
|
242 |
}
|
243 |
-
|
244 |
-
// set cache
|
245 |
-
$ultimatemember->cache->set_role_data( $role_slug, $array );
|
246 |
|
247 |
return $array;
|
248 |
}
|
206 |
***/
|
207 |
function role_data( $role_slug ) {
|
208 |
global $wpdb, $ultimatemember;
|
|
|
|
|
|
|
|
|
|
|
209 |
|
210 |
if ($role_slug == 'admin' || $role_slug == 'member'){
|
211 |
$try = $this->find_post_id('um_role','_um_core',$role_slug);
|
235 |
$array = $ultimatemember->setup->get_initial_permissions( $role_slug );
|
236 |
|
237 |
}
|
|
|
|
|
|
|
238 |
|
239 |
return $array;
|
240 |
}
|
core/um-user.php
CHANGED
@@ -287,6 +287,8 @@ class UM_User {
|
|
287 |
|
288 |
do_action('um_before_user_role_is_changed');
|
289 |
|
|
|
|
|
290 |
$this->profile['role'] = $role;
|
291 |
$this->update_usermeta_info('role');
|
292 |
|
287 |
|
288 |
do_action('um_before_user_role_is_changed');
|
289 |
|
290 |
+
do_action('um_member_role_upgrade', $role, $this->profile['role'] );
|
291 |
+
|
292 |
$this->profile['role'] = $role;
|
293 |
$this->update_usermeta_info('role');
|
294 |
|
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.1.
|
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.1.5
|
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.1.
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
@@ -47,6 +47,7 @@ Features of the plugin include:
|
|
47 |
|
48 |
You can extend the power of Ultimate Member with one of our premium extensions:
|
49 |
|
|
|
50 |
* [Social Login](https://ultimatemember.com/extensions/social-login/)
|
51 |
* [bbPress](https://ultimatemember.com/extensions/bbpress/)
|
52 |
* [MailChimp](https://ultimatemember.com/extensions/mailchimp/)
|
@@ -206,6 +207,13 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
|
|
206 |
|
207 |
== Changelog ==
|
208 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
= 1.1.4: April 2, 2015 =
|
210 |
|
211 |
* Fixed: Major bug with dropdown and date fields (Update recommended)
|
7 |
Requires at least: 4.1
|
8 |
Tested up to: 4.1.1
|
9 |
|
10 |
+
Stable Tag: 1.1.5
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
47 |
|
48 |
You can extend the power of Ultimate Member with one of our premium extensions:
|
49 |
|
50 |
+
* [Real-time Notifications](https://ultimatemember.com/extensions/real-time-notifications/)
|
51 |
* [Social Login](https://ultimatemember.com/extensions/social-login/)
|
52 |
* [bbPress](https://ultimatemember.com/extensions/bbpress/)
|
53 |
* [MailChimp](https://ultimatemember.com/extensions/mailchimp/)
|
207 |
|
208 |
== Changelog ==
|
209 |
|
210 |
+
= 1.1.5: April 4, 2015 =
|
211 |
+
|
212 |
+
* New: new action hook that runs when user role is changed um_member_role_upgrade
|
213 |
+
* Fixed: bug/compatibility issue with caching UM roles data
|
214 |
+
* Fixed: bug with changing role settings/permissions
|
215 |
+
* Fixed: bug with setting e-mail activation redirect URL
|
216 |
+
|
217 |
= 1.1.4: April 2, 2015 =
|
218 |
|
219 |
* Fixed: Major bug with dropdown and date fields (Update recommended)
|