Skip to content

Commit

Permalink
Add blockTypes prop for compatibility with WordPress#30469.
Browse files Browse the repository at this point in the history
  • Loading branch information
kjellr authored and MaggieCabrera committed Apr 19, 2021
1 parent e679c01 commit bd7c8e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/block-patterns/heading.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
return array(
'title' => _x( 'Heading', 'Block pattern title', 'default' ),
'categories' => array( 'text' ),
'blockTypes' => array( 'core/heading' ),
'content' => '<!-- wp:heading {"align":"wide","style":{"typography":{"fontSize":"48px","lineHeight":"1.1"}}} -->
<h2 class="alignwide" style="font-size:48px;line-height:1.1">' . esc_html__( "We're a studio in Berlin with an international practice in architecture, urban planning and interior design. We believe in sharing knowledge and promoting dialogue to increase the creative potential of collaboration.", 'default' ) . '</h2>
<!-- /wp:heading -->',
Expand Down
1 change: 1 addition & 0 deletions lib/block-patterns/quote.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
return array(
'title' => _x( 'Quote', 'Block pattern title', 'default' ),
'categories' => array( 'text' ),
'blockTypes' => array( 'core/quote' ),
'content' => '<!-- wp:group -->
<div class="wp-block-group"><div class="wp-block-group__inner-container"><!-- wp:separator {"className":"is-style-default"} -->
<hr class="wp-block-separator is-style-default"/>
Expand Down

0 comments on commit bd7c8e3

Please sign in to comment.