[wp-trac] [WordPress Trac] #47958: Incorrect test result for permission check of uploads directory if it doesn't exist yet
WordPress Trac
noreply at wordpress.org
Sat Sep 21 15:47:20 UTC 2019
#47958: Incorrect test result for permission check of uploads directory if it
doesn't exist yet
------------------------------+---------------------
Reporter: ocean90 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.3
Component: Site Health | Version: 5.2
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
------------------------------+---------------------
Description changed by ocean90:
Old description:
> `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.
New description:
`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.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47958#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list