Make WordPress Core


Ignore:
Timestamp:
11/30/2018 08:24:42 PM (6 years ago)
Author:
mcsf
Message:

Update sidebars_widgets to match Twenty Nineteen's single widget area

  • Also update the customizer tests to match it.

Props SergeyBiryukov, pento.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-admin/includes/upgrade.php

    r43921 r43954  
    331331    update_option( 'widget_categories', array ( 2 => array ( 'title' => '', 'count' => 0, 'hierarchical' => 0, 'dropdown' => 0 ), '_multiwidget' => 1 ) );
    332332    update_option( 'widget_meta', array ( 2 => array ( 'title' => '' ), '_multiwidget' => 1 ) );
    333     update_option( 'sidebars_widgets', array( 'wp_inactive_widgets' => array(), 'sidebar-1' => array( 0 => 'search-2', 1 => 'recent-posts-2', 2 => 'recent-comments-2', 3 => 'archives-2', 4 => 'categories-2', 5 => 'meta-2' ), 'sidebar-2' => array(), 'sidebar-3' => array(), 'array_version' => 3 ) );
     333    update_option( 'sidebars_widgets', array( 'wp_inactive_widgets' => array(), 'sidebar-1' => array( 0 => 'search-2', 1 => 'recent-posts-2', 2 => 'recent-comments-2', 3 => 'archives-2', 4 => 'categories-2', 5 => 'meta-2' ), 'array_version' => 3 ) );
    334334    if ( ! is_multisite() )
    335335        update_user_meta( $user_id, 'show_welcome_panel', 1 );
Note: See TracChangeset for help on using the changeset viewer.