Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions classes/models/fields/FrmFieldCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ protected function allow_multiple( $frm_settings ) {
protected function validate_against_api( $args ) {
$errors = array();
$frm_settings = FrmAppHelper::get_settings();
$resp = $this->send_api_check( $frm_settings );
$resp = $this->send_api_check();
$response = json_decode( wp_remote_retrieve_body( $resp ), true );

if ( is_wp_error( $resp ) ) {
Expand Down Expand Up @@ -408,11 +408,9 @@ protected function should_validate() {
}

/**
* @param FrmSettings $frm_settings
*
* @return array|WP_Error
*/
protected function send_api_check( $frm_settings ) {
protected function send_api_check() {
$captcha_settings = FrmCaptchaFactory::get_settings_object();
$arg_array = array(
'body' => array(
Expand Down
Loading