[wp-trac] [WordPress Trac] #12549: Incorrect file URL for existing uploaded images (3.0-single to multi-site)

WordPress Trac wp-trac at lists.automattic.com
Sat May 29 01:06:37 UTC 2010


#12549: Incorrect file URL for existing uploaded images (3.0-single to multi-site)
------------------------------------------+---------------------------------
 Reporter:  kpdesign                      |        Owner:        
     Type:  defect (bug)                  |       Status:  closed
 Priority:  normal                        |    Milestone:  3.0   
Component:  Multisite                     |      Version:  3.0   
 Severity:  blocker                       |   Resolution:  fixed 
 Keywords:  multisite, reporter-feedback  |  
------------------------------------------+---------------------------------

Comment(by jimmcq):

 Here's the bit of logic that I'm not following... in function
 wp_upload_dir of function.php, there is a line that starts with '''if (
 defined('UPLOADS')''', but in function ms_upload_constants of ms-default-
 constants.php, UPLOADS get defined.

 There isn't any way to un-define a constant... so why is that if (
 defined('UPLOADS') check even there?

 One of the early 3.0 nightly builds (before the first beta) introduced a
 change so that UPLOADS wasn't always defined.  To me that seemed like the
 right thing to do, but now I find that UPLOADS is always defined no matter
 what again.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12549#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list