[wp-trac] [WordPress Trac] #16444: add_user_to_blog() and remove_user_from_blog() can break the switch_to_blog() stack
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 2 22:29:37 UTC 2011
#16444: add_user_to_blog() and remove_user_from_blog() can break the
switch_to_blog() stack
--------------------------+-----------------------------
Reporter: mdawaffe | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 3.0.1
Severity: normal | Keywords: has-patch
--------------------------+-----------------------------
Both {{{add_user_to_blog()}}} and {{{remove_user_from_blog()}}} call
{{{switch_to_blog()}}} first thing. On encountering an error, however,
they can return before calling {{{restore_current_blog()}}}.
See #13903
Patch attached.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16444>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list