wp_login – second parameter missing
-
Pie Register triggers the WordPress action
wp_loginat some points.I’ve noticed that the action is called like this:
do_action( 'wp_login', $user->user_login )This causes an error in other plugins (namely Protected Content by WPMU Dev), because the wp_login should be called with 2 parameters.
I suggest to update the plugin to call the hook like this:
do_action( 'wp_login', $user->user_login, $user )According to the Codex:
codex.ww.wp.xz.cn/Plugin_API/Action_Reference/wp_loginThis hook provides access to two parameters: $user->user_login (string) and $user ( WP_User )
The topic ‘wp_login – second parameter missing’ is closed to new replies.