Kadence Blocks – Gutenberg Page Builder Toolkit - Version 2.1.4

Version Description

Release Date: August 8th, 2021 * Fix: Issue with installs not using WP 5.8

Download this release

Release Info

Developer britner
Plugin Icon 128x128 Kadence Blocks – Gutenberg Page Builder Toolkit
Version 2.1.4
Comparing to
See all releases

Code changes from version 2.1.3 to 2.1.4

dist/class-kadence-blocks-prebuilt-library.php CHANGED
@@ -410,6 +410,9 @@ class Kadence_Blocks_Prebuilt_Library {
410
  $kb_api = $kbp_data['api_key'];
411
  }
412
  }
 
 
 
413
  return md5( $this->get_base_url() . $this->get_base_path() . $this->package . KADENCE_BLOCKS_VERSION . $kb_api );
414
  }
415
  /**
410
  $kb_api = $kbp_data['api_key'];
411
  }
412
  }
413
+ if ( 'templates' !== $this->package && 'section' !== $this->package && ! $this->is_template && $this->key ) {
414
+ $kb_api = $this->key;
415
+ }
416
  return md5( $this->get_base_url() . $this->get_base_path() . $this->package . KADENCE_BLOCKS_VERSION . $kb_api );
417
  }
418
  /**
dist/init.php CHANGED
@@ -22,9 +22,14 @@ function kadence_gutenberg_editor_assets() {
22
  return;
23
  }
24
  $asset_meta = kadence_blocks_get_asset_file( 'dist/build/blocks' );
 
 
 
 
 
25
  // Scripts.
26
- wp_register_script( 'kadence-blocks-vendor', KADENCE_BLOCKS_URL . 'dist/build/vendors/blocks.js', array_merge( $asset_meta['dependencies'], array( 'wp-api' ) ), $asset_meta['version'], true );
27
- wp_register_script( 'kadence-blocks-js', KADENCE_BLOCKS_URL . 'dist/build/blocks.js', array_merge( $asset_meta['dependencies'], array( 'wp-api', 'kadence-blocks-vendor' ) ), $asset_meta['version'], true );
28
  // Styles.
29
  wp_register_style( 'kadence-blocks-editor-css', KADENCE_BLOCKS_URL . 'dist/build/blocks.css', array( 'wp-edit-blocks' ), $asset_meta['version'] );
30
  if ( function_exists( 'wp_set_script_translations' ) ) {
22
  return;
23
  }
24
  $asset_meta = kadence_blocks_get_asset_file( 'dist/build/blocks' );
25
+ if ( version_compare( get_bloginfo( 'version' ), '5.8', '<' ) ) {
26
+ $dependencies = array( 'react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url' );
27
+ } else {
28
+ $dependencies = $asset_meta['dependencies'];
29
+ }
30
  // Scripts.
31
+ wp_register_script( 'kadence-blocks-vendor', KADENCE_BLOCKS_URL . 'dist/build/vendors/blocks.js', array_merge( $dependencies, array( 'wp-api' ) ), $asset_meta['version'], true );
32
+ wp_register_script( 'kadence-blocks-js', KADENCE_BLOCKS_URL . 'dist/build/blocks.js', array_merge( $dependencies, array( 'wp-api', 'kadence-blocks-vendor' ) ), $asset_meta['version'], true );
33
  // Styles.
34
  wp_register_style( 'kadence-blocks-editor-css', KADENCE_BLOCKS_URL . 'dist/build/blocks.css', array( 'wp-edit-blocks' ), $asset_meta['version'] );
35
  if ( function_exists( 'wp_set_script_translations' ) ) {
kadence-blocks.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Advanced Page Building Blocks for Gutenberg. Create custom column layouts, backgrounds, dual buttons, icons etc.
6
  * Author: Kadence WP
7
  * Author URI: https://www.kadencewp.com
8
- * Version: 2.1.3
9
  * Text Domain: kadence-blocks
10
  * License: GPL2+
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) {
20
 
21
  define( 'KADENCE_BLOCKS_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR );
22
  define( 'KADENCE_BLOCKS_URL', plugin_dir_url( __FILE__ ) );
23
- define( 'KADENCE_BLOCKS_VERSION', '2.1.3' );
24
  /**
25
  * Add a check before redirecting
26
  */
5
  * Description: Advanced Page Building Blocks for Gutenberg. Create custom column layouts, backgrounds, dual buttons, icons etc.
6
  * Author: Kadence WP
7
  * Author URI: https://www.kadencewp.com
8
+ * Version: 2.1.4
9
  * Text Domain: kadence-blocks
10
  * License: GPL2+
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
20
 
21
  define( 'KADENCE_BLOCKS_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR );
22
  define( 'KADENCE_BLOCKS_URL', plugin_dir_url( __FILE__ ) );
23
+ define( 'KADENCE_BLOCKS_VERSION', '2.1.4' );
24
  /**
25
  * Add a check before redirecting
26
  */
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: gutenberg, blocks, page builder, google fonts, dual buttons, svg icons, ed
4
  Donate link: https://www.kadencewp.com/about-us/
5
  Requires at least: 5.5
6
  Tested up to: 5.8
7
- Stable tag: 2.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -80,6 +80,10 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
80
 
81
  == Changelog ==
82
 
 
 
 
 
83
  = 2.1.3 =
84
  Release Date: August 8th, 2021
85
  * Add: Section block direction, vertical alignment and justify control.
4
  Donate link: https://www.kadencewp.com/about-us/
5
  Requires at least: 5.5
6
  Tested up to: 5.8
7
+ Stable tag: 2.1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
80
 
81
  == Changelog ==
82
 
83
+ = 2.1.4 =
84
+ Release Date: August 8th, 2021
85
+ * Fix: Issue with installs not using WP 5.8
86
+
87
  = 2.1.3 =
88
  Release Date: August 8th, 2021
89
  * Add: Section block direction, vertical alignment and justify control.