Skip to content

Commit

Permalink
Compatibility with gutenberg 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ajitbohra committed Jun 30, 2018
1 parent 3da4219 commit 7b9ffbd
Show file tree
Hide file tree
Showing 8 changed files with 1,701 additions and 1,704 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@

All notable changes to "Color Paletter Block" will be documented here

***v1.1.0***

***v0.1***
Released on 29th June 2018

- Compatibility with gutenberg 3.1.x
- ES import for WP depenedencies
- Minor UI tweaks

***v1.0.0***

Released on 29th March 2018

Expand Down
35 changes: 4 additions & 31 deletions color-palette-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
* Description: Add color palettes to your website
* Author: LUBUS
* Author URI: https://lubus.in
* Version: 1.0
* Version: 1.1.0
* Text Domain: cpb
* Domain Path: /languages
* GitHub Plugin URI: https://github.com/lubusIN/color-palette-block
* Tags: gutenberg, block, animation
* Requires at least: 3.0.1
* Tested up to: 4.9.4
* Stable tag: 1.0
* Stable tag: 1.1.0
* License: GPLv3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*
Expand Down Expand Up @@ -81,35 +81,6 @@ private function init_hooks() {
add_action( 'init', array( $this, 'register_color_palette' ) );
}

/**
* Throw error on object clone
*
* The whole idea of the singleton design pattern is that there is a single
* object, therefore we don't want the object to be cloned.
*
* @since 1.0
* @access protected
*
* @return void
*/
public function __clone() {
// Cloning instances of the class is forbidden.
cpb_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'cpb' ), '1.0' );
}

/**
* Disable unserializing of the class
*
* @since 1.0
* @access protected
*
* @return void
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
cpb_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'cpb' ), '1.0' );
}

/**
* Setup plugin constants
*
Expand Down Expand Up @@ -176,6 +147,8 @@ public function register_color_palette(){
CPB_PLUGIN_URL . $block_js,
array(
'wp-blocks',
'wp-element',
'wp-components',
'wp-i18n',
),
filemtime( CPB_PLUGIN_DIR . $block_js )
Expand Down
Loading

0 comments on commit 7b9ffbd

Please sign in to comment.