Skip to content

Commit

Permalink
improved dynamic example
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmaguitar committed Nov 28, 2023
1 parent bf666dd commit ebdd65f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/block-dynamic-rendering-64756b/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import metadata from './block.json';
*
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
*/
console.log( 'hello' );

registerBlockType( metadata.name, {
/**
* @see ./edit.js
Expand Down
4 changes: 2 additions & 2 deletions plugins/block-dynamic-rendering-64756b/src/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
*/

?>
<p <?php echo get_block_wrapper_attributes(); // phpcs:ignore?>>
<?php esc_html_e( 'Block with Dynamic Rendering – hello!!!', '01-block-dynamic' ); ?>
<p <?php echo get_block_wrapper_attributes(); ?>>
<?php esc_html_e( 'Block with Dynamic Rendering – hello!!!', 'block-development-examples' ); ?>
</p>

0 comments on commit ebdd65f

Please sign in to comment.