Make WordPress Core

Changeset 10913


Ignore:
Timestamp:
04/12/2009 05:04:47 PM (16 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

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

    r10912 r10913  
    177177
    178178    $widget_number = isset($control['params'][0]['number']) ? $control['params'][0]['number'] : '';
    179     $add_new = $sidebar_args['_add'];
    180179    $id_base = isset($control['id_base']) ? $control['id_base'] : $widget_id;
    181180
     
    220219            <input type="hidden" name="widget-height" value="<?php echo $control['height']; ?>" />
    221220            <input type="hidden" name="widget_number" class="widget_number" value="<?php echo $widget_number; ?>" />
    222             <input type="hidden" name="add_new" class="add_new" value="<?php echo $add_new; ?>" />
    223221<?php
    224222            if ( isset($multi_number) )
    225                 echo "\t\t\t<input type='hidden' name='multi_number' class='multi_number' value='$multi_number' />\n"; ?>
     223                echo "\t\t\t<input type='hidden' name='multi_number' class='multi_number' value='$multi_number' />\n";
     224               
     225            if ( isset($sidebar_args['_add']) )
     226                echo "\t\t\t<input type='hidden' name='add_new' class='add_new' value='" . $sidebar_args['_add'] . "' />\n"; ?>
    226227
    227228            <div class="widget-control-actions">
Note: See TracChangeset for help on using the changeset viewer.