[wp-trac] [WordPress Trac] #13483: fileupload_url / upload_url_path

WordPress Trac wp-trac at lists.automattic.com
Fri May 21 21:07:00 UTC 2010


#13483: fileupload_url / upload_url_path
--------------------------+-------------------------------------------------
 Reporter:  jimisaacs     |       Owner:                                                      
     Type:  defect (bug)  |      Status:  new                                                 
 Priority:  high          |   Milestone:  3.0                                                 
Component:  Multisite     |     Version:  3.0                                                 
 Severity:  major         |    Keywords:  multisite attachments fileupload_url upload_url_path
--------------------------+-------------------------------------------------

Comment(by jimisaacs):

 I can tell you exactly what the problem is:

 I am doing a switch_to_blog() loop on the home.php template of the root
 site, where I query for posts in each blog.

 Then in use "the_post_thumbnail()" to output the featured image for each
 of those posts.

 Before the update, I was getting the correct image paths
 "<host>/<site>/files/<image-path>"

 After the update, I was getting this "<host>/wp-content/uploads/<image-
 path>"

 Then I changed the option fileupload_url to upload_url_path for each of
 the sites in the loop, and it worked again.

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


More information about the wp-trac mailing list