[wp-trac] [WordPress Trac] #5326: Don't use sanitize_title in widgets API

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 7 17:02:46 GMT 2007


#5326: Don't use sanitize_title in widgets API
---------------------+------------------------------------------------------
 Reporter:  ryan     |       Owner:  anonymous  
     Type:  defect   |      Status:  new        
 Priority:  normal   |   Milestone:  2.4        
Component:  General  |     Version:  2.4        
 Severity:  normal   |    Keywords:  performance
---------------------+------------------------------------------------------
 widgets.php calls sanitize_title() on widget IDs.  For the new API
 (functions starting with wp_), this isn't necessary.  sanitize_title() is
 a slow function that does lots of stuff we don't need to do when
 sanitizing an ID.  Let's just drop the sanitization and take the ID as is.
 For the old widgets API (functions without wp_), the sanitization can stay
 for maximum back-compat.

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


More information about the wp-trac mailing list