Ticket #7241: 7241.diff
| File 7241.diff, 720 bytes (added by , 18 years ago) |
|---|
-
wp-admin/includes/widgets.php
64 64 if ( 'all' == $show && $is_multi ) { 65 65 // it's a multi-widget. We only need to show it in the list once. 66 66 $already_shown[] = $widget['callback']; 67 $num = (int) array_pop( explode( '-', $widget['id'] ) );67 $num = (int) array_pop( $ids = explode( '-', $widget['id'] ) ); 68 68 $id_base = $wp_registered_widget_controls[$widget['id']]['id_base']; 69 69 // so that we always add a new one when clicking "add" 70 70 while ( isset($wp_registered_widgets["$id_base-$num"]) )