Opened 12 years ago
Closed 12 years ago
#31755 closed defect (bug) (fixed)
Notice in admin-bar.php since revision 31448
| Reported by: | deconf | Owned by: | jeremyfelt |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2 |
| Component: | Networks and Sites | Version: | 4.2 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | multisite |
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)
#4
@
12 years ago
Some cleanup in 31755.patch.
#5
@
12 years ago
- Status reviewing → 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].