wp_upload_dir should return a WP_Error object on failure
|Reported by:||simonwheatley||Owned by:|
Currently wp_upload_dir returns an array with an 'error' index. I believe it should return a WP_Error object instead. The attached patch amends the behaviour.
Change History (4)
- Component changed from Filesystem to Upload
- Keywords 2nd-opinion added
- Milestone changed from Unassigned to Future Release
- Owner dd32 deleted
- Type changed from defect (bug) to enhancement
- Version set to 2.9
Note: See TracTickets for help on using tickets.