Changeset 12024 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/functions.php
- Timestamp:
- 08/19/2022 02:27:37 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/functions.php
r11729 r12024 150 150 wp_styles()->do_items( $handles ); 151 151 wp_styles()->done = $done; 152 153 // Build up the alignment styles to match the layout set in theme.json.154 // See https://github.com/WordPress/gutenberg/blob/9d4b83cbbafcd6c6cbd20c86b572f458fc65ff16/lib/block-supports/layout.php#L38155 $block_gap = wp_get_global_styles( array( 'spacing', 'blockGap' ) );156 $layout = wp_get_global_settings( array( 'layout' ) );157 $style = gutenberg_get_layout_style( 'body > div', $layout, true, $block_gap );158 echo '<style>' . $style . '</style>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped159 152 160 153 wp_add_inline_script(
Note: See TracChangeset
for help on using the changeset viewer.