AtomPub redefines pluggable wp_set_current_user()
|Reported by:||mdawaffe||Owned by:||westi|
wp-app.php redefines the pluggable wp_set_current_user().
This means that plugins which redefine wp_set_current_user() don't work during a APP call.
Also the redefined function is identical to the core function except that it calls neither setup_userdata() nor do_action( 'set_current_user' ).
setup_userdata() defines some globals that plugins might rely on. And defining globals is basically all it does, so it's not very expensive.
The do_action( 'set_current_user' ) is important for plugins that need to sync user data, change caps, etc.
I have no insight into why wp-app.php needs to redefine the function.