[wp-trac] [WordPress Trac] #14910: Simplify sanitize_key() and use it in more places

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 20 15:21:57 UTC 2010


#14910: Simplify sanitize_key() and use it in more places
--------------------------+-------------------------------------------------
 Reporter:  ryan          |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.1
Component:  Performance   |     Version:     
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------
 sanitize_key() does some unnecessary work that can be eliminated.

 sanitize_user() is still being called in places where sanitize_key()
 should be used and can burn up to a percent of page load time.    It is
 called 26 times for a default install.  Using a simplified sanitize_key()
 instead of sanitize_user() will save a little time.

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


More information about the wp-trac mailing list