Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #47958


Ignore:
Timestamp:
09/21/2019 03:47:20 PM (7 years ago)
Author:
ocean90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #47958

    • Property Keywords commit added
  • Ticket #47958 – Description

    initial v3  
    1  `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.
     1`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.
    22
    33Switching to `wp_upload_dir()`, which creates the directory on the fly, ensures a proper test result.