Opened 13 years ago
Closed 13 years ago
#20411 closed defect (bug) (invalid)
wp_mkdir_p() returning false for is_dir( dirname( $target ) )
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.4 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
this condition should return true.
When calling wp_upload_dir() it returns an error if the dir already exists.
Change History (1)
Note: See
TracTickets for help on using
tickets.
is_dir( dirname( $target ) )
returns false because the function was unable to create the $target directory even though the parent directory already exists. This is the correct behaviour.True is returned when the $target already exists and is a directory:
Closing as invalid. Please re-open if I misunderstood.