[wp-trac] [WordPress Trac] #56492: blogger.getUsersBlogs doesn't work on Multisite when HTTPS is enforced

WordPress Trac noreply at wordpress.org
Fri Sep 2 02:39:02 UTC 2022


#56492: blogger.getUsersBlogs doesn't work on Multisite when HTTPS is enforced
--------------------------+-----------------------------
 Reporter:  dd32          |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  XML-RPC       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:  multisite     |
--------------------------+-----------------------------
 The XML-RPC endpoint `blogger.getUsersBlogs` doesn't work on Multisite
 environments which require HTTPS.

 This is because the endpoint defers to
 `wp_xmlrpc_server::_multisite_getUsersBlogs()` on multisite which then
 performs a new IXR request against the current site, and `IXR_Client` only
 supports HTTP.

 https://github.com/WordPress/wordpress-
 develop/blob/3a730ec57c2a29765b438cc8bd9559eda2e8f648/src/wp-includes
 /class-wp-xmlrpc-server.php#L4847-L4856

 The attached PR simply changes the code to instead call the XMLRPC method
 directly, rather than through an additional HTTP request, avoiding the
 network loopback request and removing the failure points.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56492>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list