• The output of the wpmem_loginout shortcode contains an error:
    <a href="https://nieuweveenmolen-2.0.local/login/?my_redirect_link" id=" class="wpmem_loginout_link">Login</a>

    The ID attribute only contains 1 " character. This makes the class attribute not work. (And although the redirect link works I do think it is not correct…)

    • This topic was modified 4 years, 5 months ago by Bas Middelham.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    It looks like that is definitely a bug. Looking at the offending function (loginout_args() in class-wp-members.php), there’s a missing identifier. A quick trace indicates that it has been that way since 3.3.5, so I’m surprised that it hasn’t been mentioned sooner.

    I’ll fix this for inclusion in the next release, but in the meantime, you can do one of the following:

    • Add the parameter format=”button” to the shortcode. This does format it as a button instead of a link, but the bug is in the section that generates the link, so using the button format works
    • Replace includes/class-wp-members.php with the version at the following link. It’s a very minor fix, but it’s easier for the general public to replace the entire file with a patched version rather than try to explain what to change at line 1769 😉 https://gist.github.com/rocketgeek/46c644833bb8b3fbe84979a8a63f7f22

    Either one of those two options will correct it for you until it is permanently fixed in the next update.

    • This reply was modified 4 years, 5 months ago by Chad Butler.
    Thread Starter Bas Middelham

    (@distopicus)

    Thank you!

    Plugin Author Chad Butler

    (@cbutlerjr)

    No problem! Thanks for reporting it.

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

The topic ‘Error in [wpmem_loginout] url’ is closed to new replies.