FIX: for those using custom image directory

Posted in: Newsmag
Post count: 9544

For those of you who are using a custom image directory, and who had followed the old docs on the WordPress.org site for adding the directive in your functions.php file; you may notice your images can’t be found after WP 4.5 update, and here is the reason:

just found this on client site,
they had in functions:

define(UPLOADS, 'images');

with WP 4.5 it MUST be like so:
define('UPLOADS', 'images');

Prior versions of WP allowed the missing ” — new version does not.

For anybody pulling their hair out on this one, that’s the reason.

Will only impact those of you who changed the default directory from /uploads/ to /myimagefolder/ such as outside the /wp-content/ folder, as we tend to do here.

SO … there you are ! Hope it helps somebody in their travels.

Chris

Post count: 6535

Hi

Thanks for posting this solution here, it may helps many users of this forum.
Have a nice day!

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.