Skip to content

Commit

Permalink
Address apiVersion and naming convention feedback
Browse files Browse the repository at this point in the history
- Updated all blocks to use apiVersion 3.
- Updated use of `Co-Authors` for consistency.
- Updated readme for consistency with block UI.
  • Loading branch information
douglas-johnson committed Dec 13, 2023
1 parent 69ea0a6 commit fbacc98
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ This block outputs the biographical information for a co-author based on either

The content is wrapped in paragraph elements using `wpautop` and is escaped using `wp_kses_post`.

### Co-Author Image
### Co-Author Featured Image

This block requires the use of Guest Authors. Because guest author avatars are uploaded to the WordPress media library, there are more options for displaying these images.

Expand Down
2 changes: 1 addition & 1 deletion build/blocks/block-coauthor-avatar/style-index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/blocks/block-coauthor-description/block.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"apiVersion": 3,
"name": "co-authors-plus/description",
"version": "1.0.0",
"title": "Co-Author Biography",
Expand Down
2 changes: 1 addition & 1 deletion build/blocks/block-coauthor-image/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '51e049dab7cf7dd36c96');
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '2f63fdbfb2b1caab2a26');
2 changes: 1 addition & 1 deletion build/blocks/block-coauthor-image/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/blocks/block-coauthor-name/block.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"apiVersion": 3,
"name": "co-authors-plus/name",
"version": "1.0.0",
"title": "Co-Author Name",
Expand Down
2 changes: 1 addition & 1 deletion build/blocks/block-coauthors/block.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"apiVersion": 3,
"name": "co-authors-plus/coauthors",
"version": "1.0.0",
"title": "Co-Authors",
Expand Down
2 changes: 1 addition & 1 deletion build/blocks/block-coauthors/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'a2ad2bb468dc3d48a9da');
<?php return array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '3b48c28181cec9a66691');
2 changes: 1 addition & 1 deletion build/blocks/block-coauthors/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/blocks/block-coauthor-description/block.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"apiVersion": 3,
"name": "co-authors-plus/description",
"version": "1.0.0",
"title": "Co-Author Biography",
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/block-coauthor-image/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default function Edit( {
</PanelBody>
<PanelBody
initialOpen={ false }
title={ __( 'Co-authors Layout', 'co-authors-plus' ) }
title={ __( 'Co-Authors Layout', 'co-authors-plus' ) }
>
<SelectControl
label={ __( 'Vertical align', 'co-authors-plus' ) }
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/block-coauthor-name/block.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"apiVersion": 3,
"name": "co-authors-plus/name",
"version": "1.0.0",
"title": "Co-Author Name",
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/block-coauthors/block.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"apiVersion": 3,
"name": "co-authors-plus/coauthors",
"version": "1.0.0",
"title": "Co-Authors",
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/block-coauthors/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export default function Edit( {
<InspectorControls>
{ 'inline' === layout.type && (
<PanelBody
title={ __( 'Co-authors Layout', 'co-authors-plus' ) }
title={ __( 'Co-Authors Layout', 'co-authors-plus' ) }
>
<TextControl
autoComplete="off"
Expand Down

0 comments on commit fbacc98

Please sign in to comment.