[wp-trac] [WordPress Trac] #11998: switch_to_blog and wp_upload_dir, with wpmu 2.8.4a

WordPress Trac wp-trac at lists.automattic.com
Fri May 7 20:50:02 UTC 2010


#11998: switch_to_blog and wp_upload_dir, with wpmu 2.8.4a
--------------------------+-------------------------------------------------
 Reporter:  wpmuguru      |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.0      
Component:  Multisite     |     Version:           
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
Changes (by ocean90):

  * keywords:  => has-patch


Comment:

 Replying to [comment:2 wpmuguru]:
 > Have you verified this is still a problem?
 Yes, it is. The attached patch should fix it. Tested with:

 {{{
 function u() {
         switch_to_blog( 4 );
         var_dump( wp_upload_dir() );
         restore_current_blog();
 }
 add_action('admin_init', 'u');
 }}}

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


More information about the wp-trac mailing list