Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai
noblogs-wp
Commits
6092cb91
Commit
6092cb91
authored
Oct 03, 2012
by
lechuck
Committed by
agata
Oct 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
forced https on buddypress login redirect
parent
e334bdd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
wp-content/plugins/buddypress/bp-core/bp-core-filters.php
wp-content/plugins/buddypress/bp-core/bp-core-filters.php
+3
-2
No files found.
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
Markdown
is supported
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