WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
HTTPS issue (3 posts)

  1. Andrew
    Member
    Posted 1 year ago #

    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/

  2. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    What are we talking about here? The stylesheet?

  3. Andrew
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic