[wp-trac] Re: [WordPress Trac] #10174: switch_to_blog() function in xml-rpc.php is not defined

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 15 16:18:23 GMT 2009


#10174: switch_to_blog() function in xml-rpc.php is not defined
------------------------------------+---------------------------------------
 Reporter:  Denis-de-Bernardy       |        Owner:  josephscott
     Type:  defect (bug)            |       Status:  closed     
 Priority:  normal                  |    Milestone:             
Component:  XML-RPC                 |      Version:             
 Severity:  normal                  |   Resolution:  invalid    
 Keywords:  has-patch dev-feedback  |  
------------------------------------+---------------------------------------
Changes (by josephscott):

  * status:  new => closed
  * resolution:  => invalid
  * milestone:  2.8.1 =>


Comment:

 This isn't needed because the top of the wp_getUsersBlogs() function
 checks for the existence of the is_site_admin() function, which only
 exists in WPMU.  If the is_site_admin() function doesn't exist (as is the
 case in WP installs) then it uses the blogger_getUsersBlogs() function to
 process the request.  So the only way for the code execution to reach the
 point of calling switch_to_blog() is if it's running on a WPMU install.

 I'm closing this as invalid, if it turns out that there are situations
 where this doesn't hold true then we can re-open it.

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


More information about the wp-trac mailing list