[wp-trac] [WordPress Trac] #12069: Siteurl filter for upgrades in multisite mode

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 29 23:23:03 UTC 2010


#12069: Siteurl filter for upgrades in multisite mode
-------------------------+--------------------------------------------------
 Reporter:  axelseaa     |       Owner:           
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  3.0      
Component:  Multisite    |     Version:  3.0      
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------

Comment(by wpmuguru):

 Replying to [comment:4 dd32]:

 > The general "fix" for this is for the server to be changed to resolve
 the domain name in question to itself(via /etc/hosts or similar), rather
 than to the load balancer - But i'm not sure how that'll play with WPMU.

 That should work for MU as well. Locally I use my hosts file to work with
 local MU installs and upgrades, etc, work fine.

 get_blog_option calls switch_to_blog which is a fairly expensive call. As
 mentioned, there are filters on the wp_remote_get that can be used. You
 can add filters there and check the remote IP to see if the request is
 coming from MU.

 Another alternative is to upgrade using a client that cycles through the
 list requesting each blog in turn.

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


More information about the wp-trac mailing list