Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#32439 closed defect (bug) (invalid)

define UPLOADS doesn't work with live preview

Reported by: engin1984's profile engin1984 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)

livepreview.jpg (134.8 KB) - added by engin1984 11 years ago.

Download all attachments as: .zip

Change History (3)

#1 @swissspidy
11 years ago

  • Resolution set to invalid
  • Status changed from new to closed

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).

#2 @johnbillion
11 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.