[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:09:31 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:  Plugins       |    Version:  3.9.1
 Severity:  normal        |   Keywords:
  Focuses:  multisite     |
--------------------------+-----------------------------
 The use of:
 {{{
 add_action( 'wp_login', 'my_func', 10, 2);
 }}}
 in any plugin does not work in MultiSite anymore.

 Non-network admins are re-directed to the login.php and presented with the
 "Network Admins Only" message.

 Network admin are presented with the same page however if an actual
 network admin refreshes the browser and resends their credentials they are
 redirected to the admin dashboard for the base site.

 Granted I run WPMS on IIS 7.5 so it might be a compatibility issue.

 Note:
 {{{
 add_action('wp-login', 'my_func');
 }}}

 does work (if you don't set the [priority] and [accepted_args], afaik).

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


More information about the wp-trac mailing list