[wpmu-trac] [WordPress MU Trac] #1038: function promote_if_site_admin typo (array)

WordPress MU Trac wpmu-trac at lists.automattic.com
Mon Aug 3 18:41:16 UTC 2009


#1038: function promote_if_site_admin typo (array)
---------------------+------------------------------------------------------
 Reporter:  dsader   |        Owner:  somebody
     Type:  defect   |       Status:  reopened
 Priority:  normal   |    Milestone:  2.8.2   
Component:  General  |      Version:  2.8.1   
 Severity:  normal   |   Resolution:          
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by monpelaud):

 Replying to [comment:6 donncha]:
 > What fatal error were you seeing?
 I've the same error with nextgen-gallery:

 Fatal error: Call to a member function add_cap() on a non-object in
 ...\wp-content\plugins\nextgen-gallery\admin\install.php on line 27

 In wpmu-functions.php I think that the line 1940 must be modified:

 before

 $user->{$cap_key} = array_merge( array( 'administrator' => '1' ),
 $user->{$cap_key} );

 after

 $user->{$cap_key} = array_merge( array( 'administrator' => '1' ), array(
 $user->{$cap_key} ));

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/1038#comment:7>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list