diff --git a/includes/js/block.js b/includes/js/block.js index 192e319..b7318de 100644 --- a/includes/js/block.js +++ b/includes/js/block.js @@ -14,7 +14,7 @@ DFIGBlockObject.init = function ( params ) { const registerBlockType = wp.blocks.registerBlockType, ServerSideRender = wp.components.ServerSideRender, - InspectorControls = wp.editor.InspectorControls; + InspectorControls = wp.blockEditor.InspectorControls; registerBlockType( params.block, { title: params.title, @@ -36,8 +36,8 @@ setAttributes } = props, Fragment = wp.element.Fragment, - BlockControls = wp.editor.BlockControls, - BlockAlignmentToolbar = wp.editor.BlockAlignmentToolbar; + BlockControls = wp.blockEditor.BlockControls, + BlockAlignmentToolbar = wp.blockEditor.BlockAlignmentToolbar; return [ DFIGBlockObject.el( ServerSideRender, { block: params.block, @@ -82,7 +82,7 @@ Object.keys( params.panels ).forEach( function ( key, index ) { if ( params.panels.hasOwnProperty( key ) ) { const IndividualPanel = params.panels[key]; - panels[index] = DFIGBlockObject.el( PanelBody, { + panels[ index ] = DFIGBlockObject.el( PanelBody, { title: IndividualPanel.title, initialOpen: IndividualPanel.initialOpen, className: 'scriptless-panel-' + key diff --git a/includes/js/block.min.js b/includes/js/block.min.js index fea48cd..0ce7005 100644 --- a/includes/js/block.min.js +++ b/includes/js/block.min.js @@ -1 +1 @@ -!function(e,t){"use strict";const n={el:e.element.createElement};function o(e,o,s,i){if("displayfeaturedimagegenesis/term"!==i)return;!function(e,o,s){const{attributes:i,setAttributes:r}=s;$.post(n.params.ajax_url,e,function(e){if(t!==e.success&&!1===e.success)return!1;const n=$.parseJSON(e);!function(e,t,n){const o=$(".displayfeaturedimagegenesis-"+t+" select"),s=n[t]||"";o.empty(),function(e,t,n){$.each(e,function(e,o){const s=$("