Block Editor: Update packages with latest fixes for 5.8 RC2

Includes the following fixes:

 - [Block Library]: Less warnings when blocks try to render themselves.
 - Reset z-index on focused widget form
 - Refactor appender margin.
 - Fix slash inserter for widgets screen.
 - Widget screens: set html block as freeform content handler.
 - Widget Block: widget_id is undefined when a widget is placed.
 - Add <CopyHandler> to WidgetAreasBlockEditorProvider
 - Add width: 100% to components-base-control inside wp-block-legacy-widget
 - [Widgets editor] Replace the "technical" error notice a more user-friendly one
 - Fix legacy widget height overflow 
 - Fix "Select all" behavior in the editor 
 - Increase specificity of the NoPreview CSS rules to avoid conflicts with theme styles
 - Fix move to widget area checkmark
 - Replace legacy widget icon with its new version
 - [Block Library - Query Loop]: Set default block variations not to inherit from global query

See #53397.


git-svn-id: https://develop.svn.wordpress.org/trunk@51344 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Riad Benguella
2021-07-06 14:36:26 +00:00
parent 3e2ce5cbfa
commit dd332ea876
7 changed files with 469 additions and 441 deletions

View File

@@ -100,26 +100,6 @@ class WP_Test_Render_Reusable_Blocks extends WP_UnitTestCase {
$this->assertSame( '<p>Hello world!</p><p>Hello world!</p>', $output );
}
/**
* Throw a warning if blocks are recursively nested.
*
* @ticket 52364
*/
public function test_recursive_render_warning() {
$recursive_reusable_block = array(
'ID' => self::$block_id,
'post_content' => '<!-- wp:block {"ref":' . self::$block_id . '} /-->',
);
wp_update_post( $recursive_reusable_block );
$block_type = WP_Block_Type_Registry::get_instance()->get_registered( 'core/block' );
// The block_render method for `core/block` triggers a user warning if it
// encounters a recursively nested block.
$this->expectException( 'PHPUnit_Framework_Error_Warning' );
$block_type->render( array( 'ref' => self::$block_id ) );
}
public function test_ref_empty() {
$block_type = WP_Block_Type_Registry::get_instance()->get_registered( 'core/block' );
$output = $block_type->render( array() );