registerBlockType( 'sal-cool-plugin/sal-block', {
/**
* This is the display title for your block, which can be translated with `i18n` functions.
* The block inserter will show this name.
*/
title: __( 'Sal's Block' ),
where the title value causes an error due to the extra single quote.
I've not looked into doing it but I'm assuming we can escape ' in this value (title_ucfirst).
I'm happy to do a PR for this but I'm not able to at this moment.
When a block name contains a single quote (
'
) it needs to be escapede.g.
generates an
index.js
file that includeswhere the
title
value causes an error due to the extra single quote.I've not looked into doing it but I'm assuming we can escape
'
in this value (title_ucfirst
).I'm happy to do a PR for this but I'm not able to at this moment.