Changeset 8258

Show
Ignore:
Timestamp:
07/04/08 16:16:25 (3 months ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/includes/widgets.php

    r8063 r8258  
    6565                    // it's a multi-widget.  We only need to show it in the list once. 
    6666                    $already_shown[] = $widget['callback']; 
    67                     $num = (int) array_pop( explode( '-', $widget['id'] ) ); 
     67                    $num = (int) array_pop( $ids = explode( '-', $widget['id'] ) ); 
    6868                    $id_base = $wp_registered_widget_controls[$widget['id']]['id_base']; 
    6969                    // so that we always add a new one when clicking "add"