https://wordpress.org/plugins/pie-register/
The Pie Register plugin is calling a core WordPress action, wp_login
on login which Link hooks into but it is not passing both of the required parameters so when other plugin such as Link hook into it, it will fail with errors. This is a bug with Pie register.
Here are the lines of code that contain the bug:
- https://plugins.trac.wordpress.org/browser/pie-register/tags/2.0.14/pie-register.php#L972
- https://plugins.trac.wordpress.org/browser/pie-register/tags/2.0.14/pie-register.php#L1007
- https://plugins.trac.wordpress.org/browser/pie-register/tags/2.0.14/pie-register.php#L1020
Pie register should either not call the wp_login
action hook at all or they should pass the $user
object as a second variable like so:
do_action( 'wp_login', $user->user_login, $user ); |
The only fix right now .. You’d have to edit that file, all three instances, to either remove the call or add the second variable. The safest solution is the latter because it might be possible that “Pie Register” may run in a way the core WordPress action wp_login
is never run and it needs to run for Link and any other plugin that may rely on it.
UPDATE: From the plugin developer please see this: https://wordpress.org/support/topic/wp_login-second-parameter-missing
NOTE: This FAQ was written based on Pie Register 2.0.14