Skip to content

Commit

Permalink
Rich text: log deprecation message for multiline prop (#43613)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored Aug 29, 2022
1 parent 02ca45b commit 0270c76
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/block-editor/src/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ function RichTextWrapper(
},
forwardedRef
) {
if ( multiline ) {
deprecated( 'wp.blockEditor.RichText multiline prop', {
since: '6.1',
version: '6.3',
alternative: 'nested blocks (InnerBlocks)',
link: 'https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/',
} );
}

const instanceId = useInstanceId( RichTextWrapper );

identifier = identifier || instanceId;
Expand Down

0 comments on commit 0270c76

Please sign in to comment.