Changeset 56709 for trunk/src/wp-includes/block-supports/background.php
- Timestamp:
- 09/26/2023 01:45:23 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/background.php
r56614 r56709 59 59 } 60 60 61 $background_image_source = _wp_array_get( $block_attributes, array( 'style', 'background', 'backgroundImage', 'source' ), null ); 62 $background_image_url = _wp_array_get( $block_attributes, array( 'style', 'background', 'backgroundImage', 'url' ), null ); 63 $background_size = _wp_array_get( $block_attributes, array( 'style', 'background', 'backgroundSize' ), 'cover' ); 61 $background_image_source = isset( $block_attributes['style']['background']['backgroundImage']['source'] ) 62 ? $block_attributes['style']['background']['backgroundImage']['source'] 63 : null; 64 $background_image_url = isset( $block_attributes['style']['background']['backgroundImage']['url'] ) 65 ? $block_attributes['style']['background']['backgroundImage']['url'] 66 : null; 67 $background_size = isset( $block_attributes['style']['background']['backgroundSize'] ) 68 ? $block_attributes['style']['background']['backgroundSize'] 69 : 'cover'; 64 70 65 71 $background_block_styles = array();
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)