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/tests/phpunit/tests/customize/widgets.php

    r41935 r43954  
    3333        unset( $GLOBALS['_wp_sidebars_widgets'] ); // clear out cache set by wp_get_sidebars_widgets()
    3434        $sidebars_widgets = wp_get_sidebars_widgets();
    35         $this->assertEqualSets( array( 'wp_inactive_widgets', 'sidebar-1', 'sidebar-2', 'sidebar-3' ), array_keys( wp_get_sidebars_widgets() ) );
     35        $this->assertEqualSets( array( 'wp_inactive_widgets', 'sidebar-1' ), array_keys( wp_get_sidebars_widgets() ) );
    3636        $this->assertContains( 'search-2', $sidebars_widgets['sidebar-1'] );
    3737        $this->assertContains( 'categories-2', $sidebars_widgets['sidebar-1'] );
Note: See TracChangeset for help on using the changeset viewer.