Ticket #18975: 18975.5.diff
File 18975.5.diff, 599 bytes (added by , 11 years ago) |
---|
-
src/wp-admin/widgets.php
182 182 183 183 if ( isset($_GET['addnew']) ) { 184 184 // Default to the first sidebar 185 $sidebar = array_shift( $keys = array_keys($wp_registered_sidebars) ); 185 $keys = array_keys( $wp_registered_sidebars ); 186 $sidebar = array_shift( $keys ); 186 187 187 188 if ( isset($_GET['base']) && isset($_GET['num']) ) { // multi-widget 188 189 // Copy minimal info from an existing instance of this widget to a new instance