Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
noblogs-wp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai
noblogs-wp
Commits
12b06a2a
Commit
12b06a2a
authored
12 years ago
by
lechuck
Committed by
agata
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
forced https on buddypress login redirect
parent
15cfe363
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
Noblogs 5.4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wp-content/plugins/buddypress/bp-core/bp-core-filters.php
+3
-2
3 additions, 2 deletions
wp-content/plugins/buddypress/bp-core/bp-core-filters.php
with
3 additions
and
2 deletions
wp-content/plugins/buddypress/bp-core/bp-core-filters.php
+
3
−
2
View file @
12b06a2a
...
...
@@ -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
);
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment