[wp-trac] [WordPress Trac] #10568: wp_upload_dir should return a WP_Error object on failure

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 8 13:46:21 UTC 2009


#10568: wp_upload_dir should return a WP_Error object on failure
---------------------------+------------------------------------------------
 Reporter:  simonwheatley  |       Owner:  dd32      
     Type:  defect (bug)   |      Status:  new       
 Priority:  normal         |   Milestone:  Unassigned
Component:  Filesystem     |     Version:            
 Severity:  normal         |    Keywords:  has-patch 
---------------------------+------------------------------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10568>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list