Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 66d952d

Browse files
AljulluTarun Vijwani
authored andcommitted
Fix unlinked border widths in WP 6.2 (#8893)
1 parent aa0b931 commit 66d952d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/StyleAttributesUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public static function get_border_width_class_and_style( $attributes ) {
250250

251251
$border_width_css = '';
252252

253-
if ( array_key_exists( 'width', ( $custom_border ) ) ) {
253+
if ( array_key_exists( 'width', ( $custom_border ) ) && ! empty( $custom_border['width'] ) ) {
254254
// Linked sides.
255255
$border_width_css = 'border-width:' . $custom_border['width'] . ';';
256256
} else {

0 commit comments

Comments
 (0)