Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai
noblogs-wp
Commits
6c432cc7
Commit
6c432cc7
authored
Sep 19, 2013
by
joe
Committed by
kiki
May 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set the correct recaptcha key where you have an empty one
parent
8f9dcd2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
wp-content/plugins/wp-recaptcha-bp/recaptcha.php
wp-content/plugins/wp-recaptcha-bp/recaptcha.php
+9
-1
No files found.
wp-content/plugins/wp-recaptcha-bp/recaptcha.php
View file @
6c432cc7
...
...
@@ -111,8 +111,14 @@ class ReCAPTCHAPlugin extends WPPlugin
// set the default options
function
register_default_options
()
{
if
(
$this
->
options
)
if
(
$this
->
options
)
{
if
(
$this
->
keys_missing
())
{
$this
->
options
[
'site_key'
]
=
GLOBAL_RECAPTCHA_KEY
;
$this
->
options
[
'secret'
]
=
GLOBAL_RECAPTCHA_PRIVATE_KEY
;
WPPlugin
::
add_options
(
$this
->
options_name
,
$this
->
options
);
}
return
;
}
$option_defaults
=
array
();
$old_options
=
WPPlugin
::
retrieve_options
(
"recaptcha"
);
if
(
$old_options
)
{
...
...
@@ -172,9 +178,11 @@ class ReCAPTCHAPlugin extends WPPlugin
}
function
missing_keys_notice
()
{
/*
if ($this->keys_missing()) {
$this->create_error_notice('reCAPTCHA API Keys are missing.');
}
*/
}
function
validate_dropdown
(
$array
,
$key
,
$value
)
{
...
...
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