Opened 10 years ago
Closed 10 years ago
#31755 closed defect (bug) (fixed)
Notice in admin-bar.php since revision 31448
Reported by: | deconf | Owned by: | jeremyfelt |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | 4.2 |
Component: | Networks and Sites | Keywords: | has-patch |
Focuses: | multisite | Cc: |
Description
PHP Notice: Trying to get property of non-object in \path\wp-includes\admin-bar.php on line 335
If a Super Admin has no sites, active_blog is empty and the above notice is thrown.
Attachments (4)
Change History (10)
#3
@
10 years ago
- Owner set to jeremyfelt
- Status changed from new to reviewing
@jeremyfelt: Mind taking a gander at this?
#4
@
10 years ago
Some cleanup in 31755.patch.
#5
@
10 years ago
- Status changed from reviewing to accepted
I think I like the approach in 31755.patch as opposed to the inline ternary.
I can test and get this in tonight.
Note: See
TracTickets for help on using
tickets.
Introduced in [31445], changed in [31448].