Make WordPress Core

Ticket #12163: 12163.diff

File 12163.diff, 1.7 KB (added by ryan, 16 years ago)
  • wp-admin/includes/upgrade.php

     
    258258                                                                'post_content_filtered' => ''
    259259                                                                ));
    260260
     261        // Setup default widgets for default theme.
     262        update_option( 'widget_search', array ( 2 => array ( ), 3 => array ( 'title' => '', ), '_multiwidget' => 1 ) );
     263        update_option( 'widget_recent-posts', array ( 2 => array ( ), 3 => array ( 'title' => '', 'number' => 5, ), '_multiwidget' => 1 ) );
     264        update_option( 'widget_recent-comments', array ( 2 => array ( ), 3 => array ( 'title' => '', 'number' => 5, ), '_multiwidget' => 1 ) );
     265        update_option( 'widget_archives', array ( 2 => array ( ), 3 => array ( 'title' => '', 'count' => 0, 'dropdown' => 0, ), '_multiwidget' => 1 ) );
     266        update_option( 'widget_categories', array ( 2 => array ( ), 3 => array ( 'title' => '', 'count' => 0, 'hierarchical' => 0, 'dropdown' => 0, ), '_multiwidget' => 1 ) );
     267        update_option( 'widget_meta', array ( 2 => array ( ), 3 => array ( 'title' => '', ), '_multiwidget' => 1 ) );
     268        update_option( 'sidebars_widgets', array ( 'wp_inactive_widgets' => array ( ), 'primary-widget-area' => array ( 0 => 'search-3', 1 => 'recent-posts-3', 2 => 'recent-comments-3', 3 => 'archives-3', 4 => 'categories-3', 5 => 'meta-3', ), 'secondary-widget-area' => array ( ), 'first-footer-widget-area' => array ( ), 'second-footer-widget-area' => array ( ), 'third-footer-widget-area' => array ( ), 'fourth-footer-widget-area' => array ( ), 'array_version' => 3 ) );
     269
    261270        if ( is_multisite() ) {
    262271                // Flush rules to pick up the new page.
    263272                $wp_rewrite->init();