WordPress.org

Make WordPress Core

Ticket #6949: widget_id.diff

File widget_id.diff, 709 bytes (added by filosofo, 10 years ago)
  • wp-includes/widgets.php

     
    9595function wp_register_sidebar_widget($id, $name, $output_callback, $options = array()) {
    9696        global $wp_registered_widgets;
    9797
     98        $id = strtolower($id);
     99
    98100        if ( empty($output_callback) ) {
    99101                unset($wp_registered_widgets[$id]);
    100102                return;
     
    164166 */
    165167function wp_register_widget_control($id, $name, $control_callback, $options = array()) {
    166168        global $wp_registered_widget_controls;
     169       
     170        $id = strtolower($id);
    167171
    168172        if ( empty($control_callback) ) {
    169173                unset($wp_registered_widget_controls[$id]);