Title: HTTPS issue
Last modified: August 21, 2016

---

# HTTPS issue

 *  [Andrew](https://wordpress.org/support/users/anpal79/)
 * (@anpal79)
 * [13 years ago](https://wordpress.org/support/topic/https-issue-1/)
 * Helo, great plugin, thanks!
 * However mentioned a mistake.
    You should use
 *     ```
       $protocol = is_ssl() ? 'https' : 'http';
       $url = $protocol."://www.some.url/some.resource";
       echo $url;
       ```
   
 * instead of
 *     ```
       $url = "http://www.some.url/some.resource";
       echo $url;
       ```
   
 * everywhere you insert some resources into a page.
 * Without this corrections site appears as not fully secured even with valid ssl
   sertificate (cause some page’s referenced resources are not encrypted)
 * Regards,
    Andrew
 * [http://wordpress.org/extend/plugins/theme-my-login/](http://wordpress.org/extend/plugins/theme-my-login/)

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

 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [13 years ago](https://wordpress.org/support/topic/https-issue-1/#post-3710752)
 * What are we talking about here? The stylesheet?
 *  Thread Starter [Andrew](https://wordpress.org/support/users/anpal79/)
 * (@anpal79)
 * [13 years ago](https://wordpress.org/support/topic/https-issue-1/#post-3710759)
 * I’ve patched theme-my-login/modules/recaptcha/recaptcha.php to fix it.
    Maybe
   there something else in code..
 * Changes needed in
    `const RECAPTCHA_API_URI` and `function wp_enqueue_scripts`
 * I’ve substituted them with
 *     ```
       public static function RECAPTCHA_API_URI(){
       	    $protocol = is_ssl() ? 'https' : 'http';
       	    return $protocol.'://www.google.com/recaptcha/api';
       	}
       ```
   
 * and
 *     ```
       function wp_enqueue_scripts() {
       		$protocol = is_ssl() ? 'https' : 'http';
       		wp_enqueue_script( 'recaptcha', $protocol.'://www.google.com/recaptcha/api/js/recaptcha_ajax.js' );
       ```
   
 * respectively.
 * There are also some href-s in /includes/class-theme-my-login-ms-signup.php
 * Regards,
    Andrew

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

The topic ‘HTTPS issue’ is closed to new replies.

 * ![](https://ps.w.org/theme-my-login/assets/icon-256x256.png?rev=1891232)
 * [Theme My Login](https://wordpress.org/plugins/theme-my-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-my-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-my-login/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-my-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-my-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-my-login/reviews/)

## Tags

 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [https issue](https://wordpress.org/support/topic-tag/https-issue/)

 * 2 replies
 * 2 participants
 * Last reply from: [Andrew](https://wordpress.org/support/users/anpal79/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/https-issue-1/#post-3710759)
 * Status: not resolved