Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ai
noblogs-wp
Commits
6092cb91
Commit
6092cb91
authored
Oct 03, 2012
by
lechuck
Committed by
agata
Oct 17, 2019
Browse files
forced https on buddypress login redirect
parent
e334bdd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
wp-content/plugins/buddypress/bp-core/bp-core-filters.php
View file @
6092cb91
...
...
@@ -327,7 +327,7 @@ function bp_core_login_redirect( $redirect_to, $redirect_to_raw, $user ) {
}
if
(
false
===
strpos
(
wp_get_referer
(),
'wp-login.php'
)
&&
false
===
strpos
(
wp_get_referer
(),
'activate'
)
&&
empty
(
$_REQUEST
[
'nr'
]
)
)
{
return
wp_get_referer
();
return
str_replace
(
'http://'
,
'https://'
,
wp_get_referer
()
)
;
}
/**
...
...
@@ -337,8 +337,9 @@ function bp_core_login_redirect( $redirect_to, $redirect_to_raw, $user ) {
*
* @param string $value URL to redirect to.
*/
return
apply_filters
(
'bp_core_login_redirect_to
'
,
bp_get_root_domain
()
);
return
str_replace
(
'http://'
,
'https://
'
,
bp_get_root_domain
());
}
add_filter
(
'bp_login_redirect'
,
'bp_core_login_redirect'
,
10
,
3
);
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment