Skip to content

Commit

Permalink
updating block admin enque (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic authored Jan 15, 2024
1 parent 57f4338 commit ad226ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
12 changes: 0 additions & 12 deletions src/Enqueue/Blocks/AbstractEnqueueBlocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit ad226ce

Please sign in to comment.