[wp-trac] [WordPress Trac] #14842: Efficiency improvement for is_super_admin()

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 10 23:12:57 UTC 2010


#14842: Efficiency improvement for is_super_admin()
-------------------------+--------------------------------------------------
 Reporter:  mdawaffe     |       Owner:                 
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Multisite    |     Version:  3.0.1          
 Severity:  normal       |    Keywords:  has-patch      
-------------------------+--------------------------------------------------
 is_super_admin() calls new WP_User() needlessly when running the test
 against the current user.

 Attached cleans up the logic a bit.

 Note: this inefficiency can cause an infinite recursion in certain
 (strange) scenarios when running HyperDB.

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


More information about the wp-trac mailing list