[wp-trac] [WordPress Trac] #41947: upload_path wrong after server move
WordPress Trac
noreply at wordpress.org
Fri Sep 22 00:45:03 UTC 2017
#41947: upload_path wrong after server move
--------------------------+------------------------------
Reporter: steevithak | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upload | Version: 4.8.2
Severity: normal | Resolution:
Keywords: close | Focuses:
--------------------------+------------------------------
Comment (by dd32):
Turns out that once upon a time, WordPress did auto-set `upload_path` to
`ABSPATH/wp-content/uploads` (so it's not always user set). We seem to
have stopped doing that somewhere between 2.7 and 3.7 (I can't find where
exactly).
Unfortunately it's not possible to detect when the value was set by the
user vs set automatically, so it's hard to know when it should be auto-
updated.
WordPress could simply null out the option when it equals the default
location, but that has the slight possibility of breaking scenario's where
it's been set deliberately and WordPress is being used in a scenario with
multiple servers with a shared uploads directory.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41947#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list