Skip to content

Commit

Permalink
Stop checking for digit in defined values in case theme doesn't use s…
Browse files Browse the repository at this point in the history
…tandard 10,20,30 slugs (#44136)

(cherry picked from commit 5cbfe81)
  • Loading branch information
glendaviesnz committed Sep 14, 2022
1 parent 561429c commit 678a40c
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,5 @@ export function isValuesDefined( values ) {
if ( values === undefined || values === null ) {
return false;
}
return ! isEmpty(
Object.values( values ).filter(
// Switching units when input is empty causes values only
// containing units. This gives false positive on mixed values
// unless filtered.
( value ) => !! value && /\d/.test( value )
)
);
return ! isEmpty( Object.values( values ).filter( ( value ) => !! value ) );
}

0 comments on commit 678a40c

Please sign in to comment.