Changeset 58834 for trunk/src/wp-includes/block-supports/background.php
- Timestamp:
- 07/31/2024 02:39:46 AM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/background.php
r58797 r58834 43 43 * @since 6.5.0 Added support for `backgroundPosition` and `backgroundRepeat` output. 44 44 * @since 6.6.0 Removed requirement for `backgroundImage.source`. A file/url is the default. 45 * @since 6.7.0 Added support for `backgroundAttachment` output. 45 46 * 46 47 * @access private … … 63 64 } 64 65 65 $background_styles = array(); 66 $background_styles['backgroundImage'] = $block_attributes['style']['background']['backgroundImage'] ?? null; 67 $background_styles['backgroundSize'] = $block_attributes['style']['background']['backgroundSize'] ?? null; 68 $background_styles['backgroundPosition'] = $block_attributes['style']['background']['backgroundPosition'] ?? null; 69 $background_styles['backgroundRepeat'] = $block_attributes['style']['background']['backgroundRepeat'] ?? null; 66 $background_styles = array(); 67 $background_styles['backgroundImage'] = $block_attributes['style']['background']['backgroundImage'] ?? null; 68 $background_styles['backgroundSize'] = $block_attributes['style']['background']['backgroundSize'] ?? null; 69 $background_styles['backgroundPosition'] = $block_attributes['style']['background']['backgroundPosition'] ?? null; 70 $background_styles['backgroundRepeat'] = $block_attributes['style']['background']['backgroundRepeat'] ?? null; 71 $background_styles['backgroundAttachment'] = $block_attributes['style']['background']['backgroundAttachment'] ?? null; 70 72 71 73 if ( ! empty( $background_styles['backgroundImage'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.