[wp-trac] [WordPress Trac] #21720: Hide upload_path and upload_url_path from the UI for new installs

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 29 08:33:26 UTC 2012


#21720: Hide upload_path and upload_url_path from the UI for new installs
-------------------------+-----------------
 Reporter:  nacin        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  3.5
Component:  Media        |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------
 Changing the upload_path and upload_url_path options are pretty dangerous.
 They have the potential to break quite a bit of things, not to mention
 they have the potential of simply not working.

 In #19235, I was able to simplify wp_upload_dir() so the UPLOADS constant
 would again be 100% reliable. If you wanted to specify the exact location
 of your uploads dir, this is how you should do it, the same way you can
 move wp-content and other directories.

 There's really no good reason to show upload_path or upload_url_path in
 the UI unless the values are other than the default (wp-content/uploads or
 `''` for upload_path, and `''` for upload_url_path). With that, most of a
 section disappears, leaving just year/month folder organization.

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


More information about the wp-trac mailing list