[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:51:22 UTC 2009


#10568: wp_upload_dir should return a WP_Error object on failure
---------------------------+------------------------------------------------
 Reporter:  simonwheatley  |       Owner:                       
     Type:  enhancement    |      Status:  new                  
 Priority:  normal         |   Milestone:  Future Release       
Component:  Upload         |     Version:  2.9                  
 Severity:  normal         |    Keywords:  has-patch 2nd-opinion
---------------------------+------------------------------------------------
Changes (by dd32):

  * component:  Filesystem => Upload
  * owner:  dd32 =>
  * version:  => 2.9
  * milestone:  Unassigned => Future Release
  * keywords:  has-patch => has-patch 2nd-opinion
  * type:  defect (bug) => enhancement


Comment:

 I do agree with you, But a LOT of plugins are written expecting an error
 element as a return, some do not even bother checking for that case too..

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


More information about the wp-trac mailing list