Opened 7 years ago
Closed 7 years ago
#47958 closed defect (bug) (fixed)
Incorrect test result for permission check of uploads directory if it doesn't exist yet
| Reported by: | ocean90 | Owned by: | ocean90 |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.3 |
| Component: | Site Health | Version: | 5.2 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description (last modified by )
wp_get_upload_dir() returns the theoretical path of the uploads directory. When there was no upload yet the test returns an incorrect result (not writeable) because the directory doesn't exist.
Switching to wp_upload_dir(), which creates the directory on the fly, ensures a proper test result.
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This looks like an easy win.