[wp-trac] [WordPress Trac] #13934: $current_user unfounded assumptions
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 25 16:16:08 UTC 2010
#13934: $current_user unfounded assumptions
--------------------------+-------------------------------------------------
Reporter: filosofo | Owner: filosofo
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 3.0.1
Component: Users | Version: 3.0
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Comment(by ryan):
(In [15331]) Don't perform current user ops in switch_to_blog() or
restore_current_blog() if init hasn't fired. Avoids wp_get_current_user()
not defined error when those functions are run before init. Ops on
current user prior to init are meaningless anyway. see #13934
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13934#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list