• Resolved slabbi

    (@slabbi)


    In main.php line 439 there is missing a “https” before “//www.google.com”:

    wp_register_script( 'sdm-recaptcha-scripts-lib', '//www.google.com/recaptcha/api.js?hl=' . get_locale() . '&onload=sdm_reCaptcha&render=explicit', array(), false );

    Is this a bug?

    • This topic was modified 3 months, 4 weeks ago by slabbi.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Thank you for reaching out to us. I have reported your suspicions to the developers to investigate further.

    Kind regards.

    Plugin Author mra13

    (@mra13)

    No, this is not a bug. It’s actually intentional and perfectly valid in WordPress.

    The line you’re referring to uses a protocol-relative URL (starting with //), which is a common and recommended practice in many WordPress plugins and core itself for loading external resources like this.

    The browser automatically completes the URL with whatever protocol the current page is using:

    This avoids mixed content warnings (HTTP script on HTTPS page) or unnecessary redirects.

    Thread Starter slabbi

    (@slabbi)

    I understand. Thank you for the feedback.

    I have quite a few plugins installed on my website, but I haven’t seen this syntax before.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.