Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Luke Cavanagh

    (@lukeca34)

    So the error being is due to mixed content, since My Account is HTTPS

    Blocked loading mixed active content “https://www.google.com/recaptcha/api.js?hl=en”%5BLearn More]

    Cheers
    Luke

    Below is how to fix this. Put the following in your functions.php file:

    // Fix up google recaptcha request in non-https mode
    add_filter('http_external_url', 'my_http_external_url');
    function my_http_external_url ($url) {
      if (preg_match('/www\.google\.com\/recaptcha\//i', $url)) {
        $url = str_replace('https://', 'https://', $url);
      }
    
      return $url;
    }

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘https is being stripped out of Google Recaptcha plugin’ is closed to new replies.