Version Description
Download this release
Release Info
Developer | ultimatemember |
Plugin | Ultimate Member – User Profile & Membership Plugin |
Version | 1.0.94 |
Comparing to | |
See all releases |
Code changes from version 1.0.93 to 1.0.94
- core/um-actions-access.php +2 -1
- core/um-actions-core.php +5 -0
- core/um-actions-profile.php +3 -3
- core/um-filters-members.php +2 -0
- index.php +1 -1
- readme.txt +6 -1
core/um-actions-access.php
CHANGED
@@ -12,8 +12,9 @@
|
|
12 |
if ( um_user('default_homepage') ) return;
|
13 |
if ( !um_user('redirect_homepage') ) return;
|
14 |
|
15 |
-
if(
|
16 |
$ultimatemember->access->redirect_handler = um_user('redirect_homepage');
|
|
|
17 |
}
|
18 |
|
19 |
/***
|
12 |
if ( um_user('default_homepage') ) return;
|
13 |
if ( !um_user('redirect_homepage') ) return;
|
14 |
|
15 |
+
if( is_front_page() ) {
|
16 |
$ultimatemember->access->redirect_handler = um_user('redirect_homepage');
|
17 |
+
}
|
18 |
}
|
19 |
|
20 |
/***
|
core/um-actions-core.php
CHANGED
@@ -22,6 +22,11 @@
|
|
22 |
|
23 |
switch( $_REQUEST['um_action'] ) {
|
24 |
|
|
|
|
|
|
|
|
|
|
|
25 |
case 'edit':
|
26 |
$ultimatemember->fields->editing = true;
|
27 |
if ( !um_can_edit_my_profile() ) {
|
22 |
|
23 |
switch( $_REQUEST['um_action'] ) {
|
24 |
|
25 |
+
default:
|
26 |
+
$uid = ( isset( $_REQUEST['uid'] ) ) ? $_REQUEST['uid'] : 0;
|
27 |
+
do_action('um_action_user_request_hook', $_REQUEST['um_action'], $uid);
|
28 |
+
break;
|
29 |
+
|
30 |
case 'edit':
|
31 |
$ultimatemember->fields->editing = true;
|
32 |
if ( !um_can_edit_my_profile() ) {
|
core/um-actions-profile.php
CHANGED
@@ -460,10 +460,10 @@
|
|
460 |
$items = array_merge( $items, $actions );
|
461 |
}
|
462 |
|
463 |
-
$items
|
464 |
-
|
465 |
-
$items = apply_filters('um_profile_edit_menu_items', $items );
|
466 |
|
|
|
|
|
467 |
} else {
|
468 |
|
469 |
$items = apply_filters('um_myprofile_edit_menu_items', $items );
|
460 |
$items = array_merge( $items, $actions );
|
461 |
}
|
462 |
|
463 |
+
$items = apply_filters('um_profile_edit_menu_items', $items, um_profile_id() );
|
|
|
|
|
464 |
|
465 |
+
$items['cancel'] = $cancel;
|
466 |
+
|
467 |
} else {
|
468 |
|
469 |
$items = apply_filters('um_myprofile_edit_menu_items', $items );
|
core/um-filters-members.php
CHANGED
@@ -66,6 +66,8 @@
|
|
66 |
|
67 |
foreach( $query as $field => $value ) {
|
68 |
|
|
|
|
|
69 |
if ( in_array( $field, array('gender') ) ) {
|
70 |
$operator = '=';
|
71 |
} else {
|
66 |
|
67 |
foreach( $query as $field => $value ) {
|
68 |
|
69 |
+
if(in_array($field, array('members_page'))) continue;
|
70 |
+
|
71 |
if ( in_array( $field, array('gender') ) ) {
|
72 |
$operator = '=';
|
73 |
} else {
|
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.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: The easiest way to create powerful online communities and beautiful user profiles with WordPress
|
6 |
+
Version: 1.0.94
|
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.0.
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
@@ -203,6 +203,11 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
|
|
203 |
|
204 |
== Changelog ==
|
205 |
|
|
|
|
|
|
|
|
|
|
|
206 |
= 1.0.93: March 22, 2015 =
|
207 |
|
208 |
* Fixed: bug with showing register and login forms on same page
|
7 |
Requires at least: 4.1
|
8 |
Tested up to: 4.1.1
|
9 |
|
10 |
+
Stable Tag: 1.0.94
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
203 |
|
204 |
== Changelog ==
|
205 |
|
206 |
+
= 1.0.94: March 23, 2015 =
|
207 |
+
|
208 |
+
* Fixed: bug with member directory search
|
209 |
+
* Fixed: bug with custom role homepage
|
210 |
+
|
211 |
= 1.0.93: March 22, 2015 =
|
212 |
|
213 |
* Fixed: bug with showing register and login forms on same page
|