Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/block-library/src/cover/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const INNER_BLOCKS_TEMPLATE = [
placeholder: __( 'Write title…' ),
} ],
];
const INNER_BLOCKS_ALLOWED_BLOCKS = [ 'core/button', 'core/heading', 'core/paragraph' ];

function retrieveFastAverageColor() {
if ( ! retrieveFastAverageColor.fastAverageColor ) {
Expand Down Expand Up @@ -299,7 +298,6 @@ class CoverEdit extends Component {
<div className="wp-block-cover__inner-container">
<InnerBlocks
template={ INNER_BLOCKS_TEMPLATE }
allowedBlocks={ INNER_BLOCKS_ALLOWED_BLOCKS }
Comment thread
senadir marked this conversation as resolved.
Resolved
/>
</div>
</div>
Expand Down
2 changes: 0 additions & 2 deletions packages/block-library/src/media-text/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import MediaContainer from './media-container';
/**
* Constants
*/
const ALLOWED_BLOCKS = [ 'core/button', 'core/paragraph', 'core/heading', 'core/list' ];
const TEMPLATE = [
[ 'core/paragraph', { fontSize: 'large', placeholder: _x( 'Content…', 'content placeholder' ) } ],
];
Expand Down Expand Up @@ -233,7 +232,6 @@ class MediaTextEdit extends Component {
<div className={ classNames } style={ style } >
{ this.renderMediaArea() }
<InnerBlocks
allowedBlocks={ ALLOWED_BLOCKS }
template={ TEMPLATE }
templateInsertUpdatesSelection={ false }
/>
Expand Down

This file was deleted.

24 changes: 0 additions & 24 deletions packages/e2e-tests/specs/blocks/media-text.test.js

This file was deleted.