From ad226cec6f872bd485a2ccfbe458d35e3df70670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ru=C5=BEevi=C4=87?= Date: Mon, 15 Jan 2024 11:48:02 +0100 Subject: [PATCH] updating block admin enque (#388) --- CHANGELOG.md | 6 ++++++ src/Enqueue/Blocks/AbstractEnqueueBlocks.php | 12 ------------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a5d1d7067..d00f32363 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.1] - 2024-01-15 + +### Removed +- Removed enqueuing dependency for block editor only styles. + ## [7.1.0] - 2023-11-22 ### Removed @@ -479,6 +484,7 @@ Init setup [Unreleased]: https://github.com/infinum/eightshift-libs/compare/main...HEAD +[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 [7.0.0]: https://github.com/infinum/eightshift-libs/compare/6.5.7...7.0.0 diff --git a/src/Enqueue/Blocks/AbstractEnqueueBlocks.php b/src/Enqueue/Blocks/AbstractEnqueueBlocks.php index 2f0ba41b0..80065c6be 100644 --- a/src/Enqueue/Blocks/AbstractEnqueueBlocks.php +++ b/src/Enqueue/Blocks/AbstractEnqueueBlocks.php @@ -282,18 +282,6 @@ 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 *