mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
Fix widget control registration where id is not passed in.
git-svn-id: https://develop.svn.wordpress.org/trunk@5341 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -131,8 +131,8 @@ function register_widget_control($name, $control_callback, $width = 300, $height
|
||||
$height = (int) $height > 60 ? (int) $height + 40 : 240;
|
||||
|
||||
if ( empty($control_callback) )
|
||||
unset($wp_registered_widget_controls[$name]);
|
||||
elseif ( !isset($wp_registered_widget_controls[$name]) || !$wp_register_widget_defaults )
|
||||
unset($wp_registered_widget_controls[$id]);
|
||||
elseif ( !isset($wp_registered_widget_controls[$id]) || !$wp_register_widget_defaults )
|
||||
$wp_registered_widget_controls[$id] = array(
|
||||
'name' => $name,
|
||||
'id' => $id,
|
||||
|
||||
Reference in New Issue
Block a user