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
d6a21d6f
Commit
d6a21d6f
authored
Nov 16, 2012
by
joe
Committed by
agata
Oct 17, 2019
Browse files
Patch to stop recaptcha from dumbly use http:// schema when we are on https
parent
d54f0470
Changes
1
Hide whitespace changes
Inline
Side-by-side
wp-content/plugins/wp-recaptcha-bp/wp-plugin.php
View file @
d6a21d6f
...
...
@@ -59,9 +59,13 @@ if (!class_exists('WPPlugin')) {
static
function
plugins_url
()
{
if
(
WPPlugin
::
determine_environment
()
==
Environment
::
WordPressMU
)
return
site_url
()
.
'/wp-content/mu-plugins'
;
$url
=
site_url
()
.
'/wp-content/mu-plugins'
;
else
return
site_url
()
.
'/wp-content/plugins'
;
$url
=
site_url
()
.
'/wp-content/plugins'
;
if
(
$_SERVER
[
'https'
]
==
'on'
)
{
$url
=
str_replace
(
'http://'
,
'https://'
,
$url
);
}
return
$url
;
}
static
function
path_to_plugin_directory
()
{
...
...
@@ -72,7 +76,7 @@ if (!class_exists('WPPlugin')) {
static
function
url_to_plugin_directory
()
{
$current_directory
=
basename
(
dirname
(
__FILE__
));
return
WPPlugin
::
plugins_url
()
.
"/${current_directory}"
;
}
...
...
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