Skip to content

Commit

Permalink
Fix two more instances of old rich text value source (#10669)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored and gziolo committed Oct 17, 2018
1 parent 3073756 commit 3eaf799
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
3 changes: 1 addition & 2 deletions packages/block-library/src/file/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
mediaUpload,
} from '@wordpress/editor';
import { compose } from '@wordpress/compose';
import { create } from '@wordpress/rich-text';

/**
* Internal dependencies
Expand Down Expand Up @@ -81,7 +80,7 @@ class FileEdit extends Component {
this.setState( { hasError: false } );
this.props.setAttributes( {
href: media.url,
fileName: create( { text: media.title } ),
fileName: media.title,
textLinkHref: media.url,
id: media.id,
} );
Expand Down
10 changes: 1 addition & 9 deletions packages/block-library/src/text-columns/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
RichText,
} from '@wordpress/editor';
import deprecated from '@wordpress/deprecated';
import { create } from '@wordpress/rich-text';

export const name = 'core/text-columns';

Expand Down Expand Up @@ -45,14 +44,7 @@ export const settings = {
source: 'html',
},
},
default: [
{
children: create(),
},
{
children: create(),
},
],
default: [ {}, {} ],
},
columns: {
type: 'number',
Expand Down

0 comments on commit 3eaf799

Please sign in to comment.