Opened 10 years ago
Closed 10 years ago
#7097 closed enhancement (fixed)
Invalid array data inside bp_attachments_uploads_dir_get()
| Reported by: | tw2113 | Owned by: | tw2113 |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7 |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | needs-docs good-first-bug |
| Cc: |
Description
In the bp_attachments_uploads_dir_get function, we attempt to iterate over $upload_data. However, that variable is only created via return value from bp_upload_dir() which only returns a string. Because of this, there will never be a valid value to do a foreach over.
Attachments (1)
Change History (6)
#2
@
10 years ago
- Component Core → Media
- Keywords good-first-bug added
- Milestone Awaiting Review → Future Release
- Type defect (bug) → enhancement
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I think it's a docblock issue.
bp_upload_dir()returns an associative array having these keys:That's because
bp_upload_dir()is simply the result ofwp_upload_dir()for the root blog id