Skip to content

Commit

Permalink
Hotfix 1.20.1 (#1305)
Browse files Browse the repository at this point in the history
* Ensure slick carousel is enqueued with the Events block

* Ensure the Events block, block.json is included with the release

* Updating readme for 1.20.1
  • Loading branch information
jrtashjian authored Jan 24, 2020
1 parent 5c35cae commit 950cdb9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
7 changes: 7 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@

1.20.1 / 2020-01-23
===================

### Bug Fixes
* Fix Slick carousel not being enqueued for the Events block
* Fix block.json file missing for the Events block

1.20.0 / 2020-01-23
===================

Expand Down
9 changes: 5 additions & 4 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,18 @@ module.exports = function( grunt ) {
{
expand: true,
src: [
'class-' + pkg.name + '.php',
'!**/*.{ai,eps,psd}',
'LICENSE',
'class-' + pkg.name + '.php',
'dist/**',
'includes/**',
'readme.txt',
'src/**/*.php',
'src/blocks/events/*.json',
'src/blocks/post-carousel/*.json',
'src/blocks/posts/*.json',
'src/blocks/share/*.json',
'src/blocks/social-profiles/*.json',
'dist/**',
'includes/**',
'!**/*.{ai,eps,psd}',
],
dest: 'build/<%= pkg.name %>',
},
Expand Down
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,7 @@ Developers can also apply minor style touch-ups to their themes if necessary. If
* [Remove the enqueing of the utilities stylesheet](https://github.com/godaddy-wordpress/coblocks/pull/1260)
* [Pass block name to custom class helper](https://github.com/godaddy-wordpress/coblocks/pull/1294)
* [E2E Compatibility Refactor](https://github.com/godaddy-wordpress/coblocks/pull/1261)

### 1.20.1
* Fix Slick carousel not being enqueued for the Events block
* Fix block.json file missing for the Events block
10 changes: 10 additions & 0 deletions src/blocks/events/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,16 @@ function coblocks_register_events_block() {
return;
}

$vendors_dir = CoBlocks()->asset_source( 'js', 'vendors' );

wp_enqueue_script(
'coblocks-slick',
$vendors_dir . '/slick' . COBLOCKS_ASSET_SUFFIX . '.js',
array( 'jquery' ),
COBLOCKS_VERSION,
true
);

// Load attributes from block.json.
ob_start();
include COBLOCKS_PLUGIN_DIR . 'src/blocks/events/block.json';
Expand Down

0 comments on commit 950cdb9

Please sign in to comment.