Skip to content

Commit

Permalink
Merge branch 'release/2.16.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Misplon committed Feb 14, 2022
2 parents c937832 + f8af19e commit ff188c8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion inc/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ private function start_style_wrapper( $name, $style = array(), $for = false ) {
}

$style_wrapper = '';
if ( ! empty( $attributes ) || ! empty( $standard_css ) || ! empty( $mobile_css ) ) {
if ( ! empty( $attributes ) || ! empty( $standard_css ) || ! empty( $tablet_css )|| ! empty( $mobile_css ) ) {
if ( empty( $attributes['class'] ) ) {
$attributes['class'] = array();
}
Expand Down
8 changes: 8 additions & 0 deletions inc/styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,14 @@ static function general_style_tablet_css( $css, $style ){
$css['padding'] = $style[ 'tablet_padding' ];
}

if (
! empty( $style['background_display'] ) &&
$style['background_display'] == 'fixed' &&
! ( empty( $style['background_image_attachment'] ) && empty( $style['background_image_attachment_fallback'] ) )
) {
$css[ 'background-attachment' ] = 'scroll';
}

return $css;
}

Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ SiteOrigin Premium includes access to our professional email support service, pe

== Changelog ==

= 2.16.3 - 14 February 2022 =
* Fixed Background Images: Change to `scroll` on mobile devices. Resolves iOS bug.

= 2.16.2 - 07 February 2022 =
* Added Yoast Video SEO plugin integration.
* Restored content analysis functionality for newer Yoast SEO versions.
Expand Down

0 comments on commit ff188c8

Please sign in to comment.