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/width.php +3 -9 2.10.0 → 2.14.0 View file →
@@ -83,17 +83,11 @@
83 83 $device,
84 84 self::get_attribute_default_value()
85 85 );
86 86
87 - // Get responsive unit (delegates to your get_unit function)
88 - $unit = self::get_unit(
89 - [
90 - 'unit' => Helper::get_responsive_value( $attribute_value, 'customWidthUnit', 'Desktop' ),
91 - 'unitTablet' => Helper::get_responsive_value( $attribute_value, 'customWidthUnit', 'Tablet' ),
92 - 'unitMobile' => Helper::get_responsive_value( $attribute_value, 'customWidthUnit', 'Mobile' ),
93 - ],
94 - $device
95 - );
87 + // The device's own unit, else the nearest containing wider
88 + // device's (custom breakpoints included), else Desktop's.
89 + $unit = Helper::get_responsive_value( $attribute_value, 'customWidthUnit', $device );
96 90
97 91 $css[ $property ] = $custom_width . $unit;
98 92 }//end if
99 93 }//end if