Make WordPress Core


Ignore:
Timestamp:
06/08/2021 01:54:27 AM (4 years ago)
Author:
noisysocks
Message:

Make new WordPress installations use blocks in widget areas instead of widgets

Modifies wp_install_defaults() so that when you install a new WordPress site you
have block in your widget areas, not widgets.

Fixes #53324.
Props isabel_brison, hellofromtonya, andraganescu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-widgets-controller.php

    r51079 r51088  
    656656        $response = rest_get_server()->dispatch( $request );
    657657        $data     = $response->get_data();
    658         $this->assertSame( 'block-2', $data['id'] );
     658        $this->assertSame( 'block-7', $data['id'] );
    659659        $this->assertSame( 'sidebar-1', $data['sidebar'] );
    660660        $this->assertEqualSets(
     
    662662                'content' => '<!-- wp:paragraph --><p>Block test</p><!-- /wp:paragraph -->',
    663663            ),
    664             get_option( 'widget_block' )[2]
     664            get_option( 'widget_block' )[7]
    665665        );
    666666    }
Note: See TracChangeset for help on using the changeset viewer.