Skip to content

Commit

Permalink
Remove style.css special case
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Apr 12, 2023
1 parent 9422115 commit 83d0c10
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/block-editor/src/components/global-styles/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 83d0c10

Please sign in to comment.