#32439 closed defect (bug) (invalid)
define UPLOADS doesn't work with live preview
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.2.2 |
| Component: | Themes | Keywords: | |
| Focuses: | Cc: |
Description
When previewing another theme with live preview, define('UPLOADS', 'myuploadfolder'); is not working for featured image.
I have define('UPLOADS', 'myuploadfolder'); in functions.php
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Hi there
First of all, you shouldn't define
UPLOADSin your theme's function.php. Constants like this belong towp-config.php.The uploads directory defaults to
wp-content/uploads, so if you define it asmyuploadfolderI expect things to break.Put the constant definition in your
wp-config.phpand change the path so it's relative to that folder. If the config file is inpublic_htmland the uploads folder inpublic_html/contentdir/myuploadfolder, then you should usecontentdir/myuploadfolder(untested).