Skip to content

Commit

Permalink
Docs: Fundamentals of Block Development - Update registration-of-a-bl…
Browse files Browse the repository at this point in the history
…ock.md (#56731)

Minor fixes
  • Loading branch information
juanmaguitar committed Dec 2, 2023
1 parent ded792b commit b6dc02b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/getting-started/fundamentals/registration-of-a-block.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ The function takes two params:
- `$settings` (`Object`) – client-side block settings.

<div class="callout callout-tip">
The content of <code>block.json</code> (or any other <code>.json</code> file) can be imported directly in Javascript files when using <a href="/docs/getting-started/devenv/get-started-with-wp-scripts/#the-build-process-with-wp-scripts">a build process like the one available with <code>wp-scripts</code></a>
The content of <code>block.json</code> (or any other <code>.json</code> file) can be imported directly into Javascript files when using <a href="https://developer.wordpress.org/block-editor/getting-started/devenv/get-started-with-wp-scripts/#the-build-process-with-wp-scripts">a build process like the one available with <code>wp-scripts</code></a>
</div>

The client-side block settings object passed as a second parameter include two properties that are especially relevant:
The client-side block settings object passed as a second parameter includes two especially relevant properties:
- `edit`: The React component that gets used in the editor for our block.
- `save`: The function that returns the static HTML markup that gets saved to the Database.

Expand All @@ -95,4 +95,4 @@ _See the [code above](https://github.com/WordPress/block-development-examples/bl

- [`register_block_type` PHP function](https://developer.wordpress.org/reference/functions/register_block_type/)
- [`registerBlockType` JS function](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-blocks/#registerblocktype)
- [Why a block needs to be registered in both the server and the client?](https://github.com/WordPress/gutenberg/discussions/55884) | GitHub Discussion
- [Why a block needs to be registered in both the server and the client?](https://github.com/WordPress/gutenberg/discussions/55884) | GitHub Discussion

1 comment on commit b6dc02b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in b6dc02b.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7070914295
📝 Reported issues:

Please sign in to comment.