Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter kfroment

    (@kfroment)

    BTW just been told that it should be possible to remove ‘https://’ and the browser should do the right thing, although I’ve not tested this.

    Dear kfroment,

    Your solution was correct. But when you will transfer your site to another domain with ‘https://’, in that case, it won’t work.

    So you can use this solution:
    $protocol = stripos($_SERVER[‘SERVER_PROTOCOL’],’https’) === true ? ‘https://’ : ‘https://’;
    wp_enqueue_style(“jquery_ui_new”, $protocol.”code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css”, FALSE);
    wp_enqueue_style(“jquery_ui_new”, $protocol.”code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css”, FALSE);
    wp_enqueue_script(“jquery_ui_new2″, $protocol.”code.jquery.com/ui/1.10.4/jquery-ui.js”, FALSE);
    wp_enqueue_script(“jquery_ui_new2″, $protocol.”code.jquery.com/ui/1.10.4/jquery-ui.js”, FALSE);
    wp_enqueue_script(“jquery_ui”, $protocol.”code.jquery.com/ui/1.10.4/jquery-ui.js”, FALSE);

    Let us know if this solution meets your requirements.
    Thank you.

    metalhead

    (@aaronthomas1979)

    Thanks for this info!

    However, it seems as though there are php files within wordpress that do not automatically convert links to https when WP admins specify their site in the settings as “https.”

    Can that be resolved in a future version?

    Thanks for all you guys do, and sorry if I’m missing something here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘This page is trying to load scripts from unauthenticated sources’ is closed to new replies.