diff --git a/docs/reference-guides/block-api/block-deprecation.md b/docs/reference-guides/block-api/block-deprecation.md index e636eb048d6a1..1bb24694749a0 100644 --- a/docs/reference-guides/block-api/block-deprecation.md +++ b/docs/reference-guides/block-api/block-deprecation.md @@ -55,11 +55,16 @@ const attributes = { default: 'some random value', }, }; +const supports = { + className: false, +}; registerBlockType( 'gutenberg/block-with-deprecated-version', { // ... other block properties go here attributes, + + supports, save( props ) { return
{ props.attributes.text }
; @@ -87,6 +94,9 @@ var el = wp.element.createElement, type: 'string', default: 'some random value', }, + }, + supports = { + className: false, }; registerBlockType( 'gutenberg/block-with-deprecated-version', { @@ -94,6 +104,8 @@ registerBlockType( 'gutenberg/block-with-deprecated-version', { attributes: attributes, + supports: supports, + save: function ( props ) { return el( 'div', {}, props.attributes.text ); },