mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-19 06:34:03 +09:00
WP 5.0 back-compat changes
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user