diff --git a/lib/test-block-patterns.php b/lib/test-block-patterns.php index 162d2e60af419..ee57b303a12cf 100644 --- a/lib/test-block-patterns.php +++ b/lib/test-block-patterns.php @@ -12,12 +12,9 @@ register_block_pattern( 'paragraph/v1', array( - 'title' => __( 'Paragraph version 1', 'gutenberg' ), - 'scope' => array( - 'inserter' => false, - 'transform' => array( 'core/paragraph' ), - ), - 'content' => ' + 'title' => __( 'Paragraph version 1', 'gutenberg' ), + 'blockTypes' => array( 'core/paragraph' ), + 'content' => '

Hello my paragraph!

', ) @@ -25,12 +22,9 @@ register_block_pattern( 'paragraph/v2', array( - 'title' => __( 'Paragraph version 2', 'gutenberg' ), - 'scope' => array( - 'inserter' => false, - 'transform' => array( 'core/paragraph' ), - ), - 'content' => ' + 'title' => __( 'Paragraph version 2', 'gutenberg' ), + 'blockTypes' => array( 'core/paragraph' ), + 'content' => '

Hello my paragraph!

', ) @@ -40,12 +34,9 @@ register_block_pattern( 'multi/v2', array( - 'title' => __( 'Multi blocks v2 - deep nesting', 'gutenberg' ), - 'scope' => array( - 'inserter' => false, - 'transform' => array( 'core/paragraph', 'core/heading' ), - ), - 'content' => ' + 'title' => __( 'Multi blocks v2 - deep nesting', 'gutenberg' ), + 'blockTypes' => array( 'core/paragraph', 'core/heading' ), + 'content' => '

2.Which treats of the first sally the ingenious Don Quixote made from home

@@ -67,12 +58,9 @@ register_block_pattern( 'multi/v1', array( - 'title' => __( 'Multi blocks v1', 'gutenberg' ), - 'scope' => array( - 'inserter' => false, - 'transform' => array( 'core/paragraph', 'core/heading' ), - ), - 'content' => ' + 'title' => __( 'Multi blocks v1', 'gutenberg' ), + 'blockTypes' => array( 'core/paragraph', 'core/heading' ), + 'content' => '

2.Which treats of the first sally the ingenious Don Quixote made from home

@@ -82,123 +70,3 @@ ', ) ); - -// Template Parts Patterns. -// Headers. -register_block_pattern( - 'header/v1', - array( - 'title' => __( 'Header v1', 'gutenberg' ), - 'scope' => array( - 'inserter' => false, - 'transform' => array( 'core/template-part/header' ), - ), - 'content' => ' - - - - -
- -
- - -
- -
- ', - ) -); -register_block_pattern( - 'header/v2', - array( - 'title' => __( 'Header v2', 'gutenberg' ), - 'scope' => array( - 'inserter' => false, - 'transform' => array( 'core/template-part/header' ), - ), - 'content' => ' - -

This is the Header

- - -
-
- - -
- -
-
- ', - ) -); -register_block_pattern( - 'footer/v1', - array( - 'title' => __( 'Footer v1', 'gutenberg' ), - 'scope' => array( - 'inserter' => false, - 'transform' => array( 'core/template-part/footer' ), - ), - 'content' => ' - -

This is a Footer

- - -
-
-

example@example.com
T. +00 (0)1 22 33 44 55

-
- - -
-

2, Rue Losuis-Boilly
Paris, France

-
- - -
- -
-
-', - ) -); - - -// Tests with InnerBlocks like Buttons. -register_block_pattern( - 'buttons/rigas', - array( - 'title' => __( 'Buttons v1', 'gutenberg' ), - 'scope' => array( - 'inserter' => false, - 'transform' => array( 'core/buttons' ), - ), - 'content' => ' -
-
-
- - - - -
-
- - -
-
- - - - -
-
-
- ', - ) -);