Notice fix for widgets.php, props sivel, see #9511

git-svn-id: https://develop.svn.wordpress.org/trunk@10913 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-04-12 17:04:47 +00:00
parent 8e48888e47
commit 6c25581ab4
1 changed files with 4 additions and 3 deletions

View File

@ -176,7 +176,6 @@ function wp_widget_control( $sidebar_args ) {
$id_format = $widget['id'];
$widget_number = isset($control['params'][0]['number']) ? $control['params'][0]['number'] : '';
$add_new = $sidebar_args['_add'];
$id_base = isset($control['id_base']) ? $control['id_base'] : $widget_id;
// We aren't showing a widget control, we're outputing a template for a mult-widget control
@ -219,10 +218,12 @@ function wp_widget_control( $sidebar_args ) {
<input type="hidden" name="widget-width" value="<?php echo $control['width']; ?>" />
<input type="hidden" name="widget-height" value="<?php echo $control['height']; ?>" />
<input type="hidden" name="widget_number" class="widget_number" value="<?php echo $widget_number; ?>" />
<input type="hidden" name="add_new" class="add_new" value="<?php echo $add_new; ?>" />
<?php
if ( isset($multi_number) )
echo "\t\t\t<input type='hidden' name='multi_number' class='multi_number' value='$multi_number' />\n"; ?>
echo "\t\t\t<input type='hidden' name='multi_number' class='multi_number' value='$multi_number' />\n";
if ( isset($sidebar_args['_add']) )
echo "\t\t\t<input type='hidden' name='add_new' class='add_new' value='" . $sidebar_args['_add'] . "' />\n"; ?>
<div class="widget-control-actions">
<a class="button widget-control-remove alignleft" href="<?php echo $edit ? clean_url( add_query_arg( array( 'remove' => $id_format, 'key' => $key, '_wpnonce' => $nonce ) ) ) : '#remove'; ?>"><?php _e('Remove'); ?></a>