From 83d0c106bf61a5b1f01a520dc1e7f19b86b86d1c Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Wed, 12 Apr 2023 12:15:04 +0100 Subject: [PATCH] Remove style.css special case --- packages/block-editor/src/components/global-styles/hooks.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/block-editor/src/components/global-styles/hooks.js b/packages/block-editor/src/components/global-styles/hooks.js index 17e4cec9369f45..d5ad1375031698 100644 --- a/packages/block-editor/src/components/global-styles/hooks.js +++ b/packages/block-editor/src/components/global-styles/hooks.js @@ -181,11 +181,7 @@ export function useGlobalStyle( let rawResult, result; switch ( source ) { case 'all': - rawResult = - // The styles.css path is allowed to be empty, so don't revert to base if undefined. - finalPath === 'styles.css' - ? get( userConfig, finalPath ) - : get( mergedConfig, finalPath ); + rawResult = get( mergedConfig, finalPath ); result = shouldDecodeEncode ? getValueFromVariable( mergedConfig, blockName, rawResult ) : rawResult;