From e8d77845475fa6c636a0ef4616188a65f4563bef Mon Sep 17 00:00:00 2001 From: mxkae Date: Mon, 2 Sep 2024 12:59:26 +0800 Subject: [PATCH] fix separator layer styles --- src/block-components/separator/style.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/block-components/separator/style.js b/src/block-components/separator/style.js index 9fd5c2336..f6e3e5944 100644 --- a/src/block-components/separator/style.js +++ b/src/block-components/separator/style.js @@ -11,7 +11,7 @@ import { compact } from 'lodash' /** * WordPress dependencies */ -import { applyFilters } from '@wordpress/hooks' +import { applyFilters, doAction } from '@wordpress/hooks' export const SeparatorStyles = props => { const propsToPass = { @@ -322,11 +322,11 @@ Style.addStyles = ( blockStyleGenerator, props = {} ) => { location: 'bottom', } ) addMarginBottomStyles( blockStyleGenerator, props ) - applyFilters( 'stackable.block-component.separator.layer-styles.addStyles', blockStyleGenerator, { + doAction( 'stackable.block-component.separator.layer-styles.addStyles', blockStyleGenerator, { ...props, location: 'top', } ) - applyFilters( 'stackable.block-component.separator.layer-styles.addStyles', blockStyleGenerator, { + doAction( 'stackable.block-component.separator.layer-styles.addStyles', blockStyleGenerator, { ...props, location: 'bottom', } )