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)
  • Loading branch information
glendaviesnz authored Sep 14, 2022
1 parent 5fbd554 commit 5cbfe81
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 5cbfe81

Please sign in to comment.