From 4a85aef1df7b0a92a96cb38c2b4528993c0e65d1 Mon Sep 17 00:00:00 2001 From: websevendev Date: Fri, 17 Dec 2021 09:53:06 +0200 Subject: [PATCH] 1.0.3 --- animations-for-blocks.php | 2 +- includes/assets.php | 6 ++++-- package-lock.json | 1 + readme.txt | 5 ++++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/animations-for-blocks.php b/animations-for-blocks.php index a918aa5..59a5cb9 100644 --- a/animations-for-blocks.php +++ b/animations-for-blocks.php @@ -3,7 +3,7 @@ * Plugin Name: Animations for Blocks * Plugin URI: https://wordpress.org/plugins/animations-for-blocks * Description: Allows to add animations to Gutenberg blocks on scroll. - * Version: 1.0.2 + * Version: 1.0.3 * Author: websevendev * Author URI: https://chap.website/author/websevendev */ diff --git a/includes/assets.php b/includes/assets.php index ce85e08..e49dbe7 100644 --- a/includes/assets.php +++ b/includes/assets.php @@ -10,11 +10,13 @@ * @see https://github.com/michalsnik/aos */ function register_aos() { + $asset = include WSD_ANFB_DIR . '/build/index.asset.php'; + wp_register_style( WSD_ANFB_AOS_HANDLE, plugins_url('build/aos.css', WSD_ANFB_FILE), [], - '3.0.0-beta.6', + $asset['version'], // 3.0.0-beta.6 'all' ); @@ -22,7 +24,7 @@ function register_aos() { WSD_ANFB_AOS_HANDLE, plugins_url('build/aos.js', WSD_ANFB_FILE), [], - '3.0.0-beta.6', + $asset['version'], // 3.0.0-beta.6 true ); } diff --git a/package-lock.json b/package-lock.json index a7b195c..cfdbf63 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,6 +5,7 @@ "requires": true, "packages": { "": { + "name": "animations-for-blocks", "version": "1.0.0", "license": "GPL-2.0-or-later", "devDependencies": { diff --git a/readme.txt b/readme.txt index f0a71d1..0f3d8aa 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: gutenberg, block, animation, animate, scroll, fade, flip, slide, zoom, mov Requires at least: 5.6 Tested up to: 5.8 Requires PHP: 5.4 -Stable tag: 1.0.2 +Stable tag: 1.0.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -64,6 +64,9 @@ When none of the animated elements show up on your site it's possibly due to a J == Changelog == += 1.0.3 = +* Use generated version number for AOS library. + = 1.0.2 = * Fix encoding for dynamic blocks.