Deprecated extended blocks
-
Hi,
I extended a core block using the
blocks.registerBlockType
,editor.BlockEdit
&blocks.getSaveElement
filter hooks.I’m trying to add deprecation to the custom core block by using lodash ‘assign’
settings.deprecated = assign(settings.deprecated, { save: (props) => { return ( <div className="cover-link-container"> <a className="wp-block-cover__link" href={href.url} rel={rel}> {element} </a> </div> ) }, })
When I test changing the classname in the
blocks.getSaveElement
from cover-link-container to cover-a-container it’s still having validation issues in the editor as it doesn’t seem to be picking up my deprecation, as far as I’m aware the way I’ve done it is correct.Any advice?
Thanks,
Craig
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Deprecated extended blocks’ is closed to new replies.