• Please update shortcode.php and login_integration.php to verify if the wp_login_url() already contains ‘?’.
    In that case the link should continue with ‘&’ and not again with ‘?’.

    Otherwise if the wp_login_url is changed, the social login won’t work cause the link contains two questions mark.

    Example: wp_login_url() returns this: ‘example.com?token=sometoken’

    WRONG (current version)
    example.com?token=sometoken?apsl_login_id=facebook_login&

    RIGHT (how it should be)
    example.com?token=sometoken&apsl_login_id=facebook_login&

    shortcode.php:76

                $wp_login_url = wp_login_url();
                $wp_login_url = strpos($wp_login_url, '?') ? $wp_login_url.= '&' : $wp_login_url.= '?';
                foreach ( $options['network_ordering'] as $key => $value ):
                    if ( $options["apsl_{$value}_settings"]["apsl_{$value}_enable"] === 'enable' ) { ?>
                        <a href="<?php echo $wp_login_url ?>apsl_login_id=

    login_integration.php:48

            $wp_login_url = wp_login_url();
            $wp_login_url = strpos($wp_login_url, '?') ? $wp_login_url.= '&' : $wp_login_url.= '?';
            foreach ( $options['network_ordering'] as $key => $value ):
                if ( $options["apsl_{$value}_settings"]["apsl_{$value}_enable"] === 'enable' ) { ?>
                    <a href="<?php echo $wp_login_url ?>apsl_login_id=
    • This topic was modified 3 years, 4 months ago by tiberiumihai.
    • This topic was modified 3 years, 4 months ago by tiberiumihai.
    • This topic was modified 3 years, 4 months ago by tiberiumihai.
  • The topic ‘wp_login_url() might contain ‘?’ already’ is closed to new replies.