projects
/
WP-Themes
/
thinkdunes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84e539c
)
Members only test
author
Laury GvR
<laury@gaslightmedia.com>
Wed, 25 May 2016 17:22:18 +0000
(13:22 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Wed, 25 May 2016 17:22:18 +0000
(13:22 -0400)
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index
b4bc60a
..
d5ebf12
100644
(file)
--- a/
functions.php
+++ b/
functions.php
@@
-227,6
+227,7
@@
function front_end_login_fail( $username ) {
$referrer = $_SERVER['HTTP_REFERER'];
// if there's a valid referrer, and it's not the default log-in screen
if( !empty( $referrer ) && !strstr( $referrer,'wp-login' ) && !strstr( $referrer,'wp-admin' ) ) {
+ echo get_permalink( get_option('glm_members_database_option_members_only_id') ) . "?login=failed";
wp_redirect( get_permalink( get_option('glm_members_database_option_members_only_id') ) . "?login=failed" );
exit;
}