WP 5.0 back-compat changes

This commit is contained in:
Justin Foell
2020-03-27 13:58:20 -05:00
parent 3e922a55ba
commit ee97e2e5ca
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -1,13 +1,14 @@
/** /**
* WordPress dependencies * WordPress dependencies
*/ */
import { BlockControls } from '@wordpress/editor';
const { __ } = wp.i18n; const { __ } = wp.i18n;
const { const {
Icon, Icon,
Button, Button,
Toolbar, Toolbar,
} = wp.components; } = wp.components;
const { BlockControls } = wp.blockEditor;
const EmbedControls = ( props ) => { const EmbedControls = ( props ) => {
const { const {
+3 -1
View File
@@ -1,9 +1,11 @@
/** /**
* WordPress dependencies * WordPress dependencies
*/ */
import { BlockIcon } from '@wordpress/editor';
const { __, _x } = wp.i18n; const { __, _x } = wp.i18n;
const { Button, Placeholder, ExternalLink } = wp.components; const { Button, Placeholder, ExternalLink } = wp.components;
const { BlockIcon } = wp.blockEditor;
const EmbedPlaceholder = ( props ) => { const EmbedPlaceholder = ( props ) => {
const { const {