Make WordPress Core

Changeset 6323


Ignore:
Timestamp:
11/08/2007 12:56:54 AM (17 years ago)
Author:
ryan
Message:

Don't run sanitize_title on IDs in new widgets API to avoid performance overhead. fixes #5326

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/widgets.php

    r6275 r6323  
    8686
    8787    global $wp_registered_widgets, $wp_register_widget_defaults;
    88 
    89     $id = sanitize_title($id);
    9088
    9189    if ( empty($output_callback) ) {
     
    142140function wp_register_widget_control($id, $name, $control_callback, $options = array()) {
    143141    global $wp_registered_widget_controls, $wp_register_widget_defaults;
    144 
    145     $id = sanitize_title($id);
    146142
    147143    if ( empty($control_callback) ) {
Note: See TracChangeset for help on using the changeset viewer.