WordPress.org

Make WordPress Core

Changeset 5341


Ignore:
Timestamp:
04/28/2007 05:04:16 PM (15 years ago)
Author:
ryan
Message:

Fix widget control registration where id is not passed in.

File:
1 edited

Legend:

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

    r5338 r5341  
    132132
    133133    if ( empty($control_callback) )
    134         unset($wp_registered_widget_controls[$name]);
    135     elseif ( !isset($wp_registered_widget_controls[$name]) || !$wp_register_widget_defaults )
     134        unset($wp_registered_widget_controls[$id]);
     135    elseif ( !isset($wp_registered_widget_controls[$id]) || !$wp_register_widget_defaults )
    136136        $wp_registered_widget_controls[$id] = array(
    137137            'name' => $name,
Note: See TracChangeset for help on using the changeset viewer.