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.
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?
Thanks :) theres a break so it display 1 error at a time.
Will patch.