Opened 11 years ago
Closed 11 years ago
#32281 closed defect (bug) (fixed)
get_blogs_of_user should not set archived, spam and delete to 0
| Reported by: | realloc | Owned by: | jeremyfelt |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.3 |
| Component: | Users | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: | Focuses: | multisite |
Description
get_blogs_of_user creates blog-objects and adds them to an array right after a call of get_blog_details. It uses all data of that function but sets the properties archived, spam and delete to 0 even if this is not true.
Attachments (1)
Change History (3)
#1
@
11 years ago
- Focuses multisite added
- Keywords has-patch needs-testing added
- Milestone Awaiting Review → 4.3
- Version trunk → 3.5
Hi @realloc, thanks for the ticket and patch and tests!
At first glance, this seems to make sense. I'm not sure that we have any other reasoning for setting everything to 0 other than something was necessary to avoid notices (see #16225). Otherwise, the same method of providing data has existed since [15671].
I'm going to bump this to 4.3, but sit on it for a bit to make sure we're not missing anything.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch and unit-test