From a5f24a4a5450089fc0ccb2bd06661d6ca59639f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ruz=CC=8Cevic=CC=81?= Date: Mon, 15 Jan 2024 15:07:46 +0100 Subject: [PATCH] updating block admin enque --- CHANGELOG.md | 6 ++++++ src/Enqueue/Blocks/AbstractEnqueueBlocks.php | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d00f32363..a33786324 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file. This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/). +## [7.1.2] - 2024-01-15 + +### Changed +- Reverting the previous release. + ## [7.1.1] - 2024-01-15 ### Removed @@ -484,6 +489,7 @@ Init setup [Unreleased]: https://github.com/infinum/eightshift-libs/compare/main...HEAD +[7.1.2]: https://github.com/infinum/eightshift-libs/compare/7.1.1...7.1.2 [7.1.1]: https://github.com/infinum/eightshift-libs/compare/7.1.0...7.1.1 [7.1.0]: https://github.com/infinum/eightshift-libs/compare/7.0.1...7.1.0 [7.0.1]: https://github.com/infinum/eightshift-libs/compare/7.0.0...7.0.1 diff --git a/src/Enqueue/Blocks/AbstractEnqueueBlocks.php b/src/Enqueue/Blocks/AbstractEnqueueBlocks.php index 80065c6be..2f0ba41b0 100644 --- a/src/Enqueue/Blocks/AbstractEnqueueBlocks.php +++ b/src/Enqueue/Blocks/AbstractEnqueueBlocks.php @@ -282,6 +282,18 @@ public function enqueueBlockFrontendStyle(string $hook): void \wp_enqueue_style($handle); } + /** + * Get style dependencies + * + * @link https://developer.wordpress.org/reference/functions/wp_enqueue_style/ + * + * @return string[] List of all the style dependencies. + */ + protected function getAdminStyleDependencies(): array + { + return ["{$this->getAssetsPrefix()}-block-style"]; + } + /** * List of admin script dependencies *