Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Site Health: Replace
wp_get_upload_dir()
with wp_upload_dir()
.
`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. Fixes #47958. Built from https://develop.svn.wordpress.org/trunk@46228 git-svn-id: http://core.svn.wordpress.org/trunk@46040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
- Loading branch information