Opened 6 years ago
Closed 6 years ago
#47958 closed defect (bug) (fixed)
Incorrect test result for permission check of uploads directory if it doesn't exist yet
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | 5.2 |
Component: | Site Health | Keywords: | has-patch commit |
Focuses: | Cc: |
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.
This looks like an easy win.