WordPress.org

Ready to get started?Download WordPress

Forums

Sidebar Login
2.3 Broken on bad login (sidebar-login.php on line 112) (3 posts)

  1. Nyhm
    Member
    Posted 2 years ago #

    When an invalid user or pass is entered:

    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/sidebar-login/sidebar-login.php on line 112

    I really like Sidebar Login, and I like the new login form style. Looking forward to a patch for this new error.

  2. Nyhm
    Member
    Posted 2 years ago #

    This appears to fix that line of code (and replace the following as shown), but I'm not sure this is exactly what you intended:

    foreach ($login_errors->get_error_messages() as $error) {
       echo '<div class="login_error">' . $error . "</div>\n";
       break;

    Please advise (and patch). Thanks.

    PS Why is there a break after the first iteration?

  3. Mike
    Member
    Posted 2 years ago #

    Thanks :) theres a break so it display 1 error at a time.

    Will patch.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic