• Please, update the block to work with the latest release of Gutenberg, the blocks.source object is deprecated and not available since Gutenberg 2.4 (https://github.com/WordPress/gutenberg/blob/master/docs/deprecated.md), wp.blocks.InspectorControls.* components are also deprecated and not available anymore. Lines 2 – 8 of block.js can be changed like that:

    
    	var el = element.createElement;
    	var BlockControls = wp.blocks.BlockControls;
    	var AlignmentToolbar = wp.blocks.AlignmentToolbar;
    	var MediaUpload = wp.blocks.MediaUpload;
    	var InspectorControls = wp.blocks.InspectorControls;
    	var TextControl = wp.components.TextControl;
    	var SelectControl = wp.components.SelectControl;
    
  • The topic ‘The block uses deprecated JS objects’ is closed to new replies.