Skip to content

Commit

Permalink
Block API: Remove HTML source string normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Oct 18, 2018
1 parent a04f484 commit 5474e83
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/blocks/src/api/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ export function createBlock( name, blockAttributes = {}, innerBlocks = [] ) {
result[ key ] = schema.default;
}

if ( schema.source === 'html' && typeof result[ key ] !== 'string' ) {
result[ key ] = '';
}

if ( [ 'node', 'children' ].indexOf( schema.source ) !== -1 ) {
// Ensure value passed is always an array, which we're expecting in
// the RichText component to handle the deprecated value.
Expand Down

0 comments on commit 5474e83

Please sign in to comment.