Skip to content

Commit

Permalink
Merge branch 'release/2.16.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
Misplon committed Mar 21, 2022
2 parents e319095 + d06f13e commit 9d561e4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions inc/css-builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ public function add_css( $selector, $attributes, $resolution = 1920 ) {
if ( ! strlen( (string) $v[ $i ] ) ) continue;
$attribute_string[] = wp_strip_all_tags( $k ) . ':' . wp_strip_all_tags( $v[ $i ] );
}
}
else {
if ( ! strlen( (string) $v ) ) continue;
} elseif ( ! strlen( (string) $v ) || $v == 'px' ) {
continue;
} else {
$attribute_string[] = wp_strip_all_tags( $k ) . ':' . wp_strip_all_tags( $v );
}
}
Expand Down
5 changes: 3 additions & 2 deletions inc/sidebars-emulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ function register_widgets() {
if ( ! empty( $current_url['path'] ) ) {

// Check if WPML is running.
if ( defined( 'ICL_LANGUAGE_CODE' ) ) {
$wpml_language = apply_filters( 'wpml_current_language', NULL );
if ( ! empty( $wpml_language ) ) {
// Remove the current language code from path to avoid 404.
$current_url['path'] = ltrim( $current_url['path'], '/' . ICL_LANGUAGE_CODE . '/' );
$current_url['path'] = preg_replace( "/^\/$wpml_language\//", '/', $current_url['path'], 1 );
}

$page = get_page_by_path( $current_url['path'], OBJECT, siteorigin_panels_setting( 'post-types' ) );
Expand Down
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ SiteOrigin Premium includes access to our professional email support service, pe

== Changelog ==

= 2.16.6 - 21 March 2022 =
* Prevented CSS properties outputting with only `px` set as the value.
* WPML: Refined sidebar emulator language path removal.

= 2.16.5 - 06 March 2022 =
* Full-Width Containers Using CSS: Ensured full-width global CSS is only output once.

Expand Down

0 comments on commit 9d561e4

Please sign in to comment.