Fix pass-by-ref error. Props DD32. fixes #7241
git-svn-id: http://svn.automattic.com/wordpress/trunk@8258 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4ead38ccbb
commit
c2814da3f1
|
@ -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"]) )
|
||||
|
|
Loading…
Reference in New Issue