Changeset 55201 for trunk/src/wp-includes/block-supports/layout.php
- Timestamp:
- 02/03/2023 12:34:59 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/layout.php
r55167 r55201 208 208 209 209 if ( 'horizontal' === $layout_orientation ) { 210 $justify_content_options += array( 'space-between' => 'space-between' ); 210 $justify_content_options += array( 'space-between' => 'space-between' ); 211 $vertical_alignment_options += array( 'stretch' => 'stretch' ); 212 } else { 213 $justify_content_options += array( 'stretch' => 'stretch' ); 214 $vertical_alignment_options += array( 'space-between' => 'space-between' ); 211 215 } 212 216 … … 275 279 'selector' => $selector, 276 280 'declarations' => array( 'align-items' => 'flex-start' ), 281 ); 282 } 283 if ( ! empty( $layout['verticalAlignment'] ) && array_key_exists( $layout['verticalAlignment'], $vertical_alignment_options ) ) { 284 $layout_styles[] = array( 285 'selector' => $selector, 286 'declarations' => array( 'justify-content' => $vertical_alignment_options[ $layout['verticalAlignment'] ] ), 277 287 ); 278 288 }
Note: See TracChangeset
for help on using the changeset viewer.