bobbingwide / oik-blocks

WordPress 5.0 blocks for oik shortcodes
https://oik-plugins.com/oik-plugins/oik-blocks
GNU General Public License v3.0
1 stars 0 forks source link

Block validation failed when using the block inserter #40

Open bobbingwide opened 4 years ago

bobbingwide commented 4 years ago

Block validation: Block validation failed for oik-block/blocklist (Object).

Content generated by save function:

and then a load of HTML.

See also https://github.com/bobbingwide/sb-toolicons-block/issues/1

bobbingwide commented 4 years ago

One explanation for the invocation of the save function is because I'd coded example: {}. This causes the block to display a preview using default attributes.

I removed that code but it's still calling save(). And it continues to produce the block validation failed message.

bobbingwide commented 4 years ago

The differences betwen the generated by save and the retrieved from post body HTML are that the links to the blocks are different

generated by save: https://s.b/wordpress/2020/09/24/address-oik-block-address retrieved by post body: https://s.b/wordpress/?block=block-listaddress-oik-block-address

Perhaps the block list should default to not creating links.