Make WordPress Core


Ignore:
Timestamp:
07/04/2008 04:16:25 PM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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"
Note: See TracChangeset for help on using the changeset viewer.