[wp-trac] [WordPress Trac] #14854: Default admin username is not "admin" any longer per default

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 12 08:19:07 UTC 2010


#14854: Default admin username is not "admin" any longer per default
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Security      |     Version:                 
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
 But 3.0.0 introduced API function {{{get_super_admins();}}} has it
 hardcoded as default:

 {{{
 /**
  * Retrieve a list of super admins.
  *
  * @since 3.0.0
  *
  * @uses $super_admins Super admins global variable, if set.
  *
  * @return array List of super admin logins
  */
 function get_super_admins() {
         global $super_admins;

         if ( isset($super_admins) )
                 return $super_admins;
         else
                 return get_site_option( 'site_admins', array('admin') );
 }
 }}}

 the concrete line is:[[BR]]
 return get_site_option( 'site_admins', array(''' 'admin' ''') );

 in file /wp-includes/capabilities.php.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14854>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list