WordPress.org

Make WordPress Core

Changeset 7243


Ignore:
Timestamp:
03/11/2008 06:01:22 PM (12 years ago)
Author:
ryan
Message:

Don't show multi widgets multi times in available widgets. Props mdawaffe. fixes #6162

File:
1 edited

Legend:

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

    r7242 r7243  
    5353            ob_end_clean();
    5454
    55             if ( !$sidebar || $is_multi = false !== strpos( $widget_control_template, '%i%' ) ) {
     55            $is_multi = false !== strpos( $widget_control_template, '%i%' );
     56            if ( !$sidebar || $is_multi ) {
    5657                if ( $is_multi )
    5758                    $already_shown[] = $widget['callback']; // it's a multi-widget.  We only need to show it in the list once.
Note: See TracChangeset for help on using the changeset viewer.