Make WordPress Core


Ignore:
Timestamp:
05/25/2021 08:38:04 AM (4 years ago)
Author:
noisysocks
Message:

Adds the widgets block editor to widgets.php and customize.php

Moves the widgets block editor from Gutenberg into WordPress Core.

  • Adds @wordpress/edit-widgets, @wordpress/customize-widgets and @wordpress/widgets.
  • Modifies wp-admin/widgets.php to branch between the old editor and new editor depending on wp_use_widgets_block_editor().
  • Modifies WP_Customize_Widgets to branch between the old editor control and new editor control depending on wp_use_widgets_block_editor().

Fixes #51506.
Props isabel_brison, TimothyBlynJacobs, andraganescu, kevin940726, talldanwp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r50992 r50996  
    15531553        'reusable-blocks'      => array( 'wp-components' ),
    15541554        'nux'                  => array( 'wp-components' ),
     1555        'edit-widgets'         => array(
     1556            'wp-components',
     1557            'wp-block-editor',
     1558            'wp-edit-blocks',
     1559            'wp-block-library',
     1560            'wp-reusable-blocks',
     1561        ),
     1562        'customize-widgets'    => array(
     1563            'wp-components',
     1564            'wp-block-editor',
     1565            'wp-edit-blocks',
     1566            'wp-block-library',
     1567            'wp-reusable-blocks',
     1568        ),
    15551569    );
    15561570
Note: See TracChangeset for help on using the changeset viewer.