WordPress / gutenberg-examples

Examples for extending WordPress/Gutenberg with blocks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic block PHP template should use $block instead $block_instance

bacoords opened this issue · comments

Re: blocks-jsx/10-dynamic-block/template.php

I had an issue when accessing the variable $block_instance as shown in this example. After reviewing the docs, I believe that the variable should just be called $block.

Reference: https://github.com/WordPress/gutenberg/blob/trunk/docs/reference-guides/block-api/block-metadata.md#render