Ticket #8255 (closed defect (bug): fixed)
WPCOMism in xmllrpc.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7 |
| Component: | XML-RPC | Version: | 2.7 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
The check for site_id on line 432 of xmlrpc.php is a piece of legacy code from WordPress.com and has been taken out in WordPress MU.
That foreach() loop is also missing a restore_current_blog() call, the complement of switch_to_blog(). It should be added immediately after the definition of $is_admin.
Attachments
Change History
- Owner changed from anonymous to josephscott
- Component changed from General to XML-RPC
comment:3
josephscott — 3 years ago
Here's an untested patch based on a brief discussion with Donncha.
get_blogs_of_user() doesn't exist for WP. Nor do the switch and restore functions.
Ah, I see. We test for is_site_admin() to short-circuit for WP. The fix is so WPMU picks it up on merge.
Note: See
TracTickets for help on using
tickets.


Those functions don't exist in WP.