WordPress.org

Make WordPress Core

Ticket #9511: 9511.1.diff

File 9511.1.diff, 635 bytes (added by sivel, 6 years ago)

Notice fix for new widgets page

  • wp-admin/includes/widgets.php

     
    176176        $id_format = $widget['id']; 
    177177 
    178178        $widget_number = isset($control['params'][0]['number']) ? $control['params'][0]['number'] : ''; 
    179         $add_new = $sidebar_args['_add']; 
     179        $add_new = isset($sidebar_args['_add']) ? $sidebar_args['_add'] : ''; 
    180180        $id_base = isset($control['id_base']) ? $control['id_base'] : $widget_id; 
    181181 
    182182        // We aren't showing a widget control, we're outputing a template for a mult-widget control