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
0315471b
Commit
0315471b
authored
Sep 19, 2013
by
joe
Committed by
agata
Jul 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set the correct recaptcha key where you have an empty one
parent
4fb2a200
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 @
0315471b
...
...
@@ -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