Automattic / vip-support

Manages the VIP Support Users on your site
GNU General Public License v2.0
12 stars 4 forks source link

Don't typecast $user object for wp_login callback #62

Closed mjangda closed 2 years ago

mjangda commented 6 years ago

Some manually called instances may incorrectly pass in a non-WP_User object which results in fatals:

Uncaught TypeError: Argument 2 passed to Automattic\VIP\Support_User\User::action_wp_login() must be an instance of WP_User, boolean given
nickdaugherty commented 6 years ago

Oops meant to 'Request Changes' on the Review (instead of just Comment).

sjinks commented 2 years ago

Moved to Automattic/vip-go-mu-plugins#2917, closing here.