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
932c200c
Commit
932c200c
authored
Sep 19, 2013
by
joe
Committed by
lechuck
Sep 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set the correct recaptcha key where you have an empty one
parent
2eacfe48
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/recaptcha.php
wp-content/plugins/wp-recaptcha/recaptcha.php
+9
-1
No files found.
wp-content/plugins/wp-recaptcha/recaptcha.php
View file @
932c200c
...
...
@@ -102,8 +102,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
)
{
...
...
@@ -163,9 +169,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