projects
/
WP-Plugins
/
glm-member-db-contacts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39b1105
)
Update the redirect for member login.
author
Steve Sutton
<steve@gaslightmedia.com>
Thu, 3 May 2018 11:52:44 +0000
(07:52 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Thu, 3 May 2018 11:52:44 +0000
(07:52 -0400)
If there's a hidden field in the login form member_redirect it will goto
that instead of the member only page.
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index
8705057
..
0906709
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-299,7
+299,12
@@
function front_end_login_success_checks() {
$glmMembersUrl = check_members_only_page_login();
if ($glmMembersUrl) {
- wp_redirect( $glmMembersUrl."?login=empty" );
+
+ if ( isset( $_REQUEST['member_redirect'] ) && $_REQUEST['member_redirect'] ) {
+ wp_redirect( $_REQUEST['member_redirect'] );
+ } else {
+ wp_redirect( $glmMembersUrl."?login=empty" );
+ }
exit;
}