[wp-trac] [WordPress Trac] #29712: Restore $current_user between unit tests
WordPress Trac
noreply at wordpress.org
Fri Oct 24 00:58:37 UTC 2014
#29712: Restore $current_user between unit tests
------------------------------+---------------------------
Reporter: mnelson4 | Owner: boonebgorges
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.1
Component: Build/Test Tools | Version: trunk
Severity: normal | Resolution: fixed
Keywords: | Focuses:
------------------------------+---------------------------
Changes (by boonebgorges):
* owner: => boonebgorges
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"30001"]:
{{{
#!CommitTicketReference repository="" revision="30001"
Set current user to 0 after each unit test.
This prevents $current_user, $userdata, and other user-related globals
from
being polluted if a previous test does not properly reset the current
user.
Props nacin, mnelson4.
Fixes #29712.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29712#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list