[wp-trac] [WordPress Trac] #39179: Media has incorrect File URL on site with alternate uploads folder

WordPress Trac noreply at wordpress.org
Thu Dec 8 05:03:26 UTC 2016


#39179: Media has incorrect File URL on site with alternate uploads folder
--------------------------+-----------------------------
 Reporter:  oxfordian3    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  4.7
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Migrated from 4.6.1 to 4.7 and found new issue with Media Upload.

 On this particular site, the default upload folder is customized with
 UPLOADS defined at the end of wp-config.php:

 {{{#!php
 <?php
 require_once(ABSPATH . 'wp-settings.php');
 define('UPLOADS', 'files');
 }}}

 When doing a standard upload of an image file, the resulting File URL
 should be as follows (which worked in 4.6.1):

 {{{
 http://DOMAIN/files/[IMG-FILE]
 }}}

 but after 4.7 upgrade, results in:

 {{{
 http://DOMAIN/wp-content/uploads/[FULL-LOCAL-PATH-TO-SITE-ROOT]/files
 /[IMG-FILE]
 }}}

 i.e the File URL contains LOCAL-PATH from root ("/nfs/c12/h07/mnt/ etc.")

 Full disclosure:  this occurred when I migrated the site to a new host,
 and at the same time upgraded from 4.6.1 to 4.7.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39179>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list