[wp-trac] [WordPress Trac] #23728: Errors when trying to upload media before saving network settings

WordPress Trac noreply at wordpress.org
Sat Mar 9 03:28:47 UTC 2013


#23728: Errors when trying to upload media before saving network settings
-----------------------------+--------------------------
 Reporter:  wp4j             |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:                   |   Severity:  major
 Keywords:                   |
-----------------------------+--------------------------
 foreach warning due to unpopulated $mimes array and denial of uploads even
 when file types defined in network admin settings. This seems to happen
 because there is a disconnect between the defaults and what is actually
 present in the db (before the first save).

 Should be noted that the site was installed programmatically using
 wp_install() so this may have something to do with it. I am giving this a
 major severity because the server path is disclosed from the foreach
 warning and the least that should be done is do an is_array() check on
 that $mime var and give a meaningful message stating that there are no
 mimes defined or something...

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


More information about the wp-trac mailing list