Suppressing login error reporting
-
Hi,
For a while now, I’ve had a function in my functions.php file (originally found in this article) to disable login error reporting. I found this morning that create_function is deprecated in recent versions of PHP, so I need to update the function to an anonymous one, but I don’t understand enough about PHP to do that, even though it’s a very simple one.
The present function is this:
add_filter('login_errors',create_function('$a', "return null;"));
Could anyone help me figure out what an anonymous function version of this would be?
Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Suppressing login error reporting’ is closed to new replies.