Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
noblogs-wp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
39
Issues
39
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ai
noblogs-wp
Commits
cd170893
Commit
cd170893
authored
Oct 03, 2012
by
lechuck
Committed by
agata
Jul 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
forced https on buddypress login redirect
parent
91e0deed
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 @
cd170893
...
...
@@ -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