Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Change pattern category.
Browse files Browse the repository at this point in the history
  • Loading branch information
jffng committed Oct 12, 2021
1 parent fdf51dd commit 4d7091b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions inc/block-patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ function twentytwentytwo_register_block_patterns() {
'twentytwentytwo-query',
array( 'label' => __( 'Twenty Twenty-Two Posts', 'twentytwentytwo' ) )
);
register_block_pattern_category(
'twentytwentytwo-i18n',
array( 'label' => __( 'Twenty Twenty-Two i18n', 'twentytwentytwo' ) )
);
}
if ( function_exists( 'register_block_pattern' ) ) {
$block_patterns = array(
Expand Down
10 changes: 5 additions & 5 deletions inc/patterns/wordpress-credit.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
*
*/
return array(
'title' => __( 'WordPress Credit', 'twentytwentytwo' ),
'categories' => array( 'twentytwentytwo' ),
'content' => '<!-- wp:paragraph {"align":"right"} -->
'title' => __( 'WordPress Credit', 'twentytwentytwo' ),
'categories' => array( 'twentytwentytwo-i18n' ),
'content' => '<!-- wp:paragraph {"align":"right"} -->
<p class="has-text-align-right">' . __( 'Proudly powered by ', 'twentytwentytwo' ) . '<a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
<!-- /wp:paragraph -->'
);
<!-- /wp:paragraph -->',
);

0 comments on commit 4d7091b

Please sign in to comment.