| @@ -40,12 +40,9 @@ | ||
| 40 | 40 | public static function get_css( $attribute_value, $property = '', $device = '' ) { |
| 41 | 41 | if ( empty( $attribute_value ) ) { |
| 42 | 42 | return []; |
| 43 | 43 | } |
| 44 | - // responsive_defaults(), not get_attribute_default_value( true ): the | |
| 45 | - // compilers also pass custom-breakpoint suffixes and the phantom probe, | |
| 46 | - // which the plain responsive defaults have no keys for. | |
| 47 | - $default_attar_value = $device ? self::responsive_defaults() : self::get_attribute_default_value( false ); | |
| 44 | + $default_attar_value = self::get_attribute_default_value( (bool) $device ); | |
| 48 | 45 | $value = wp_parse_args( $attribute_value, $default_attar_value ); |
| 49 | 46 | $css = []; |
| 50 | 47 | |
| 51 | 48 | if ( '' !== $value[ 'strokeWidth' . $device ] ) { |