From 9bd483c861cb389028d5b86047168da3a85dd12f Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Wed, 6 Apr 2022 05:09:14 +0200 Subject: [PATCH 1/4] Add author block pattern --- lib/compat/wordpress-6.0/block-patterns-update.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/compat/wordpress-6.0/block-patterns-update.php b/lib/compat/wordpress-6.0/block-patterns-update.php index d3585a774de27..366c4518c669a 100644 --- a/lib/compat/wordpress-6.0/block-patterns-update.php +++ b/lib/compat/wordpress-6.0/block-patterns-update.php @@ -157,6 +157,18 @@ function gutenberg_register_gutenberg_patterns() { ', ), + 'author-biograhy-border' => array( + 'title' => _x( 'Post author biography with avatar and border', 'Block pattern title', 'gutenberg' ), + 'categories' => array( 'text' ), + 'blockTypes' => array( 'core/post-author-name', 'core/post-author-biography', 'core/avatar' ), + 'content' => ' +
+
+ +
+
+ ', + ), ); foreach ( $patterns as $name => $pattern ) { From 21e71d5ec806881a12f1b57721b8442a0efa113b Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Wed, 6 Apr 2022 05:46:06 +0200 Subject: [PATCH 2/4] Adjust spacing --- lib/compat/wordpress-6.0/block-patterns-update.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/compat/wordpress-6.0/block-patterns-update.php b/lib/compat/wordpress-6.0/block-patterns-update.php index 366c4518c669a..fb229f098ba9f 100644 --- a/lib/compat/wordpress-6.0/block-patterns-update.php +++ b/lib/compat/wordpress-6.0/block-patterns-update.php @@ -158,10 +158,10 @@ function gutenberg_register_gutenberg_patterns() { ', ), 'author-biograhy-border' => array( - 'title' => _x( 'Post author biography with avatar and border', 'Block pattern title', 'gutenberg' ), - 'categories' => array( 'text' ), - 'blockTypes' => array( 'core/post-author-name', 'core/post-author-biography', 'core/avatar' ), - 'content' => ' + 'title' => _x( 'Post author biography with avatar and border', 'Block pattern title', 'gutenberg' ), + 'categories' => array( 'text' ), + 'blockTypes' => array( 'core/post-author-name', 'core/post-author-biography', 'core/avatar' ), + 'content' => '
From 1eab8d732f9a4ad77802d181338a6c3b11cdcaba Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Wed, 6 Apr 2022 06:25:01 +0200 Subject: [PATCH 3/4] Adjust spacing --- lib/compat/wordpress-6.0/block-patterns-update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/wordpress-6.0/block-patterns-update.php b/lib/compat/wordpress-6.0/block-patterns-update.php index fb229f098ba9f..86225d671fce4 100644 --- a/lib/compat/wordpress-6.0/block-patterns-update.php +++ b/lib/compat/wordpress-6.0/block-patterns-update.php @@ -157,7 +157,7 @@ function gutenberg_register_gutenberg_patterns() { ', ), - 'author-biograhy-border' => array( + 'author-biograhy-border' => array( 'title' => _x( 'Post author biography with avatar and border', 'Block pattern title', 'gutenberg' ), 'categories' => array( 'text' ), 'blockTypes' => array( 'core/post-author-name', 'core/post-author-biography', 'core/avatar' ), From c6bdecbedd37003341f8b0116488d6601d14970d Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Wed, 6 Apr 2022 06:47:18 +0200 Subject: [PATCH 4/4] spacing --- lib/compat/wordpress-6.0/block-patterns-update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/wordpress-6.0/block-patterns-update.php b/lib/compat/wordpress-6.0/block-patterns-update.php index 86225d671fce4..1704e86d20234 100644 --- a/lib/compat/wordpress-6.0/block-patterns-update.php +++ b/lib/compat/wordpress-6.0/block-patterns-update.php @@ -157,7 +157,7 @@ function gutenberg_register_gutenberg_patterns() { ', ), - 'author-biograhy-border' => array( + 'author-biograhy-border' => array( 'title' => _x( 'Post author biography with avatar and border', 'Block pattern title', 'gutenberg' ), 'categories' => array( 'text' ), 'blockTypes' => array( 'core/post-author-name', 'core/post-author-biography', 'core/avatar' ),