[wp-trac] [WordPress Trac] #28717: add_action( 'wp_login', 'my_func', 10, 2) use in multisite prevents login.

WordPress Trac noreply at wordpress.org
Wed Jul 2 15:36:58 UTC 2014


#28717: add_action( 'wp_login', 'my_func', 10, 2) use in multisite prevents login.
------------------------------------+------------------------------
 Reporter:  Cleanshooter            |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Login and Registration  |     Version:  3.9.1
 Severity:  normal                  |  Resolution:
 Keywords:  reporter-feedback       |     Focuses:  multisite
------------------------------------+------------------------------

Comment (by Cleanshooter):

 Replying to [comment:2 johnbillion]:
 > Thanks for the report, Cleanshooter.
 >
 > Can you provide some more details? What does your 'my_func' function do?
 What is the expected result?
 >
 > This sounds like an issue with a plugin on your site performing a
 redirect when you're not expecting it to. You might be better off posting
 to the [https://wordpress.org/support/ support forums].

 Requested Details:


 {{{
 add_action( 'wp_login', array(__CLASS__, 'last_login'),  10, 2);

 public function last_login($user_login, $user) {
    //$user_report = self::__get_controller('user_report');
    //$user_report->udpate_last_login($user_login, $user);
 }
 }}}

 As you can see my plugin does nothing right now as I've commented out the
 action to help test where the problem is.  So right now I'm not expecting
 the action to do anything beyond still let me login.

 Since I'm the plugin author and this is the only action that targets
 'wp_login' and I've uninstalled all other plugins from my development
 environment I figure it might be a bug.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28717#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list