Changeset 58750
- Timestamp:
- 07/18/2024 06:48:08 AM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/layout.php
r58708 r58750 323 323 */ 324 324 if ( isset( $block_spacing_values['declarations']['padding-right'] ) ) { 325 $padding_right = $block_spacing_values['declarations']['padding-right']; 325 $padding_right = $block_spacing_values['declarations']['padding-right']; 326 // Add unit if 0. 327 if ( '0' === $padding_right ) { 328 $padding_right = '0px'; 329 } 326 330 $layout_styles[] = array( 327 331 'selector' => "$selector > .alignfull", … … 330 334 } 331 335 if ( isset( $block_spacing_values['declarations']['padding-left'] ) ) { 332 $padding_left = $block_spacing_values['declarations']['padding-left']; 336 $padding_left = $block_spacing_values['declarations']['padding-left']; 337 // Add unit if 0. 338 if ( '0' === $padding_left ) { 339 $padding_left = '0px'; 340 } 333 341 $layout_styles[] = array( 334 342 'selector' => "$selector > .alignfull",
Note: See TracChangeset
for help on using the changeset viewer.