[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
Thu Feb 3 00:17:38 UTC 2011
#16444: add_user_to_blog() and remove_user_from_blog() can break the
switch_to_blog() stack
------------------------------------+--------------------------
Reporter: mdawaffe | Owner: markjaquith
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.1
Component: Users | Version: 3.0.1
Severity: normal | Resolution: fixed
Keywords: has-patch dev-feedback |
------------------------------------+--------------------------
Comment (by markjaquith):
(In [17380]) restore_current_blog() in add_user_to_blog() and
remove_user_from_blog() before early return, to avoid being stuck in a
switched state. props mdawaffe. fixes #16444 for trunk.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16444#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list