#9309 closed defect (bug) (fixed)
Notice: Undefined variable: user in /wp-admin/includes/user.php on line 397
| Reported by: | mark8barnes | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7.2 |
| Component: | Administration | Version: | 2.7.1 |
| Severity: | minor | Keywords: | has-patch, needs-testing |
| Cc: | Focuses: |
Description
if WP_DEBUG is on (and therefore E_NOTICE is also on), you get the above error when confirming the deletion of a user.
I presume the error is caused because of a missing
$user = new WP_User($id);
at the beginning of the function
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [10760]) Create user object. Props mark8barnes. fixes #9309 for trunk