Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author NicolasKulka

    (@nicolaskulka)

    Hello,

    I will update the plugin with this change.

    Plugin Author NicolasKulka

    (@nicolaskulka)

    Version 1.5.4

    Thread Starter susansiow

    (@susansiow)

    Hi Nicolas,

    The latest update – 1.5.4.2 doesn’t include the change.
    Please help, thank you!

    Regards,
    Susan

    Plugin Author NicolasKulka

    (@nicolaskulka)

    Hello,
    Yes, I had to remove the WPML compatibility that you asked me because it caused a lot of conflict on other users’ sites.

    Thread Starter susansiow

    (@susansiow)

    Hi Nicolas,

    Do you have a piece of PHP code that I can insert it into the child theme’s functions.php, so that I don’t have to amend your plugin’s file every time when an update takes place?

    Thanks.

    Regards,
    Susan

    Plugin Author NicolasKulka

    (@nicolaskulka)

    Replace with this function :

    “public function new_login_url( $scheme = null ) {

    $url = apply_filters( ‘wps_hide_login_home_url’, home_url( ‘/’, $scheme ) );

    if ( get_option( ‘permalink_structure’ ) ) {

    return $this->user_trailingslashit( $url . $this->new_login_slug() );

    } else {

    return $url . ‘?’ . $this->new_login_slug();

    }

    }”

    This will be deployed in the next update.

    Thread Starter susansiow

    (@susansiow)

    Hi Nicolas,

    Thank you for your kind support, can’t wait for the next update! ??

    For now, do you mean I should replace the following code in /classes/plugin.php (line 145)

    return $this->user_trailingslashit( home_url( '/', $scheme ) . $this->new_login_slug() );

    with

    public function new_login_url( $scheme = null ) {
    
    $url = apply_filters( ‘wps_hide_login_home_url’, home_url( ‘/’, $scheme ) );
    
    if ( get_option( ‘permalink_structure’ ) ) {
    
    return $this->user_trailingslashit( $url . $this->new_login_slug() );
    
    } else {
    
    return $url . ‘?’ . $this->new_login_slug();
    
    }
    
    }

    Kindly advise, thank you!

    Regards,
    Susan

    Plugin Author NicolasKulka

    (@nicolaskulka)

    no all function new_login_url()

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Plugin Update Request for WPML Compatibility’ is closed to new replies.