[wpmu-trac] Re: [WordPress MU Trac] #944: BLOGUPLOADDIR/upload_path hardcoded in wp-admin/includes/mu.php

WordPress MU Trac wpmu-trac at lists.automattic.com
Tue Apr 7 15:36:59 GMT 2009


#944: BLOGUPLOADDIR/upload_path hardcoded in wp-admin/includes/mu.php
----------------------------+-----------------------------------------------
 Reporter:  jodocus         |        Owner:  somebody
     Type:  defect          |       Status:  closed  
 Priority:  normal          |    Milestone:          
Component:  Administration  |      Version:  2.7     
 Severity:  major           |   Resolution:  fixed   
 Keywords:                  |  
----------------------------+-----------------------------------------------
Changes (by donncha):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 Unfortunately that function can't use the BLOGUPLOADDIR constant because
 $blog_id is a parameter passed to that delete function. The constant is
 the path to the current blog's upload dir.

 In [1722] I added a filter "wpmu_delete_blog_upload_dir" so you can change
 the path. It takes 2 parameters: path, blog_id so a filter can insert the
 blog_id wherever it likes.

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/944#comment:1>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list