Plugin Directory

Changeset 2788952


Ignore:
Timestamp:
09/22/2022 07:44:44 PM (4 years ago)
Author:
lddwebdesign
Message:

3.5 updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ldd-directory-lite/trunk/includes/ajax.php

    r2359247 r2788952  
    2222 */
    2323function ldl_ajax_contact_form() {
     24   
    2425    $response = '';
    2526
     
    2728        die( __('You shall not pass!', 'ldd-directory-lite') );
    2829
    29     $hpt_field = 'last_name';
     30    $hpt_field = 'senders_name';
    3031
    3132    if (!empty($_POST[ $hpt_field ])) {
     
    6364        );
    6465
    65 $verify = curl_init();
    66 curl_setopt($verify, CURLOPT_URL, "https://www.google.com/recaptcha/api/siteverify");
    67 curl_setopt($verify, CURLOPT_POST, true);
    68 curl_setopt($verify, CURLOPT_POSTFIELDS, http_build_query($data));
    69 curl_setopt($verify, CURLOPT_SSL_VERIFYPEER, false);
    70 curl_setopt($verify, CURLOPT_RETURNTRANSFER, true);
    71 $response = json_decode(curl_exec($verify));
     66
    7267
    7368
Note: See TracChangeset for help on using the changeset viewer.