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

WordPress MU Trac wpmu-trac at lists.automattic.com
Sat Jul 11 02:58:08 UTC 2009


#1038: function promote_if_site_admin typo (array)
------------------------+---------------------------------------------------
 Reporter:  dsader      |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:          
Component:  component1  |     Version:          
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 wpmu-functions.php

 Fixed typo in wpmu-functions.php function promote_if_site_admin:

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

 See Chalk: http://mu.wordpress.org/forums/topic/12130/page/2#post-77547

 If the typo fixed is return false; changeset 1764 workaround needed?

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


More information about the wpmu-trac mailing list