[wp-trac] [WordPress Trac] #32439: define UPLOADS doesn't work with live preview
WordPress Trac
noreply at wordpress.org
Tue May 19 12:45:55 UTC 2015
#32439: define UPLOADS doesn't work with live preview
--------------------------+------------------------------
Reporter: engin1984 | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 4.2.2
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by swissspidy):
* status: new => closed
* resolution: => invalid
Comment:
Hi there
First of all, you shouldn't define `UPLOADS` in your theme's function.php.
Constants like this belong to `wp-config.php`.
The uploads directory defaults to `wp-content/uploads`, so if you define
it as `myuploadfolder` I expect things to break.
Put the constant definition in your `wp-config.php` and change the path so
it's relative to that folder. If the config file is in `public_html` and
the uploads folder in `public_html/contentdir/myuploadfolder`, then you
should use `contentdir/myuploadfolder` (untested).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32439#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list