Page Builder by SiteOrigin - Version 2.16.6

Version Description

  • 21 March 2022 =
  • Prevented CSS properties outputting with only px set as the value.
  • WPML: Refined sidebar emulator language path removal.
Download this release

Release Info

Developer SiteOrigin
Plugin Icon 128x128 Page Builder by SiteOrigin
Version 2.16.6
Comparing to
See all releases

Code changes from version 2.16.5 to 2.16.6

inc/css-builder.php CHANGED
@@ -30,9 +30,9 @@ class SiteOrigin_Panels_Css_Builder {
30
  if ( ! strlen( (string) $v[ $i ] ) ) continue;
31
  $attribute_string[] = wp_strip_all_tags( $k ) . ':' . wp_strip_all_tags( $v[ $i ] );
32
  }
33
- }
34
- else {
35
- if ( ! strlen( (string) $v ) ) continue;
36
  $attribute_string[] = wp_strip_all_tags( $k ) . ':' . wp_strip_all_tags( $v );
37
  }
38
  }
30
  if ( ! strlen( (string) $v[ $i ] ) ) continue;
31
  $attribute_string[] = wp_strip_all_tags( $k ) . ':' . wp_strip_all_tags( $v[ $i ] );
32
  }
33
+ } elseif ( ! strlen( (string) $v ) || $v == 'px' ) {
34
+ continue;
35
+ } else {
36
  $attribute_string[] = wp_strip_all_tags( $k ) . ':' . wp_strip_all_tags( $v );
37
  }
38
  }
inc/sidebars-emulator.php CHANGED
@@ -73,9 +73,10 @@ class SiteOrigin_Panels_Sidebars_Emulator {
73
  if ( ! empty( $current_url['path'] ) ) {
74
 
75
  // Check if WPML is running.
76
- if ( defined( 'ICL_LANGUAGE_CODE' ) ) {
 
77
  // Remove the current language code from path to avoid 404.
78
- $current_url['path'] = ltrim( $current_url['path'], '/' . ICL_LANGUAGE_CODE . '/' );
79
  }
80
 
81
  $page = get_page_by_path( $current_url['path'], OBJECT, siteorigin_panels_setting( 'post-types' ) );
73
  if ( ! empty( $current_url['path'] ) ) {
74
 
75
  // Check if WPML is running.
76
+ $wpml_language = apply_filters( 'wpml_current_language', NULL );
77
+ if ( ! empty( $wpml_language ) ) {
78
  // Remove the current language code from path to avoid 404.
79
+ $current_url['path'] = preg_replace( "/^\/$wpml_language\//", '/', $current_url['path'], 1 );
80
  }
81
 
82
  $page = get_page_by_path( $current_url['path'], OBJECT, siteorigin_panels_setting( 'post-types' ) );
readme.txt CHANGED
@@ -3,8 +3,8 @@ Tags: page builder, responsive, parallax, widgets, blocks, gallery, layout, grid
3
  Requires at least: 4.7
4
  Tested up to: 5.9
5
  Requires PHP: 5.6.20
6
- Stable tag: 2.16.5
7
- Build time: 2022-03-06T12:16:46+02:00
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
  Donate link: https://siteorigin.com/downloads/premium/
@@ -107,6 +107,10 @@ SiteOrigin Premium includes access to our professional email support service, pe
107
 
108
  == Changelog ==
109
 
 
 
 
 
110
  = 2.16.5 - 06 March 2022 =
111
  * Full-Width Containers Using CSS: Ensured full-width global CSS is only output once.
112
 
3
  Requires at least: 4.7
4
  Tested up to: 5.9
5
  Requires PHP: 5.6.20
6
+ Stable tag: 2.16.6
7
+ Build time: 2022-03-21T20:38:46+02:00
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
  Donate link: https://siteorigin.com/downloads/premium/
107
 
108
  == Changelog ==
109
 
110
+ = 2.16.6 - 21 March 2022 =
111
+ * Prevented CSS properties outputting with only `px` set as the value.
112
+ * WPML: Refined sidebar emulator language path removal.
113
+
114
  = 2.16.5 - 06 March 2022 =
115
  * Full-Width Containers Using CSS: Ensured full-width global CSS is only output once.
116
 
siteorigin-panels.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Page Builder by SiteOrigin
4
  Plugin URI: https://siteorigin.com/page-builder/
5
  Description: A drag and drop, responsive page builder that simplifies building your website.
6
- Version: 2.16.5
7
  Author: SiteOrigin
8
  Author URI: https://siteorigin.com
9
  License: GPL3
@@ -11,7 +11,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
11
  Donate link: http://siteorigin.com/page-builder/#donate
12
  */
13
 
14
- define( 'SITEORIGIN_PANELS_VERSION', '2.16.5' );
15
  if ( ! defined( 'SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
16
  define( 'SITEORIGIN_PANELS_JS_SUFFIX', '.min' );
17
  }
3
  Plugin Name: Page Builder by SiteOrigin
4
  Plugin URI: https://siteorigin.com/page-builder/
5
  Description: A drag and drop, responsive page builder that simplifies building your website.
6
+ Version: 2.16.6
7
  Author: SiteOrigin
8
  Author URI: https://siteorigin.com
9
  License: GPL3
11
  Donate link: http://siteorigin.com/page-builder/#donate
12
  */
13
 
14
+ define( 'SITEORIGIN_PANELS_VERSION', '2.16.6' );
15
  if ( ! defined( 'SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
16
  define( 'SITEORIGIN_PANELS_JS_SUFFIX', '.min' );
17
  }