WordPress.org

Make WordPress Core

Changeset 7849


Ignore:
Timestamp:
04/28/2008 08:08:23 PM (10 years ago)
Author:
ryan
Message:

Multi-widget pattern documentation typo fixes from Jaymin Patel. fixes #6866

File:
1 edited

Legend:

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

    r7736 r7849  
    307307                    continue;
    308308                }
    309                
     309
    310310                $found = false;
    311                
     311
    312312                foreach ( $wp_registered_widgets as $widget_id => $widget ) {
    313313                    if ( strtolower($widget['name']) == strtolower($name) ) {
     
    321321                    }
    322322                }
    323                
     323
    324324                if ( $found )
    325325                    continue;
    326                
     326
    327327                unset($_sidebars_widgets[$index][$i]);
    328328            }
     
    14971497        }
    14981498
    1499         update_option('widget_text', $options);
     1499        update_option('widget_many', $options);
    15001500
    15011501        $updated = true; // So that we don't go through this more than once
     
    15391539        $id = "many-$o"; // Never never never translate an id
    15401540        $registered = true;
    1541         wp_register_sidebar_widget( $id, $name, 'wp_widget_text', $widget_ops, array( 'number' => $o ) );
    1542         wp_register_widget_control( $id, $name, 'wp_widget_text_control', $control_ops, array( 'number' => $o ) );
     1541        wp_register_sidebar_widget( $id, $name, 'widget_many', $widget_ops, array( 'number' => $o ) );
     1542        wp_register_widget_control( $id, $name, 'widget_many_control', $control_ops, array( 'number' => $o ) );
    15431543    }
    15441544
Note: See TracChangeset for help on using the changeset viewer.