[wp-trac] [WordPress Trac] #13012: Editing users as super admin causes php error in ms.php
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 15 04:35:58 UTC 2010
#13012: Editing users as super admin causes php error in ms.php
--------------------------+-------------------------------------------------
Reporter: phlux0r | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Users | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
WP 3.0 beta-1 rev 14041
When editing a user as Super Admin, clicking update produces php error
(invalid argument in foreach...).
After that, super admin setting in site options is corrupted and all
multisite features disappear. Temporary fix is to restore correct
site_admin option in wp_sitemeta.
Looking at code on 837 in wp-admin/includes/ms.php, it tries to iterate
over an array that has not been loaded. Fix is to add:
$super_admins = get_site_option( 'site_admins', array( 'admin' ) );
before foreach(). See included patch.
HTH
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13012>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list