Making WordPress.org


Ignore:
Timestamp:
08/19/2022 02:27:37 PM (2 years ago)
Author:
ryelle
Message:

Pattern Directory: Sync with git WordPress/pattern-directory@52841f347e20fa2d015a385fa5cfbe1ba6a43729

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/functions.php

    r11729 r12024  
    150150    wp_styles()->do_items( $handles );
    151151    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#L38
    155     $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.OutputNotEscaped
    159152
    160153    wp_add_inline_script(
Note: See TracChangeset for help on using the changeset viewer.