PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.14.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.14.0
2.14.0 2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 81 releases
← All changes | includes/controls/text-stroke.php +4 -1 2.8.1 → 2.14.0 View file →
@@ -40,9 +40,12 @@
40 40 public static function get_css( $attribute_value, $property = '', $device = '' ) {
41 41 if ( empty( $attribute_value ) ) {
42 42 return [];
43 43 }
44 - $default_attar_value = self::get_attribute_default_value( (bool) $device );
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 );
45 48 $value = wp_parse_args( $attribute_value, $default_attar_value );
46 49 $css = [];
47 50
48 51 if ( '' !== $value[ 'strokeWidth' . $device ] ) {