Fix pass-by-ref error. Props DD32. fixes #7241

git-svn-id: https://develop.svn.wordpress.org/trunk@8258 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-07-04 16:16:25 +00:00
parent cd8d510b27
commit 32391d9b2a
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ function wp_list_widgets( $show = 'all', $_search = false ) {
if ( 'all' == $show && $is_multi ) {
// it's a multi-widget. We only need to show it in the list once.
$already_shown[] = $widget['callback'];
$num = (int) array_pop( explode( '-', $widget['id'] ) );
$num = (int) array_pop( $ids = explode( '-', $widget['id'] ) );
$id_base = $wp_registered_widget_controls[$widget['id']]['id_base'];
// so that we always add a new one when clicking "add"
while ( isset($wp_registered_widgets["$id_base-$num"]) )