Kadence Blocks – Gutenberg Page Builder Toolkit - Version 2.4.17

Version Description

Release Date: October 24th, 2022 * Fix: Issue with row padding not outputing 0.

Download this release

Release Info

Developer britner
Plugin Icon 128x128 Kadence Blocks – Gutenberg Page Builder Toolkit
Version 2.4.17
Comparing to
See all releases

Code changes from version 2.4.16 to 2.4.17

dist/class-kadence-blocks-frontend.php CHANGED
@@ -8554,11 +8554,11 @@ class Kadence_Blocks_Frontend {
8554
  }
8555
  if ( isset( $attr['topPadding'] ) || isset( $attr['bottomPadding'] ) || isset( $attr['paddingUnit'] ) || isset( $attr['leftPadding'] ) || isset( $attr['rightPadding'] ) || isset( $attr['minHeight'] ) || isset( $attr['maxWidth'] ) ) {
8556
  $css->set_selector( '#kt-layout-id' . $unique_id . ' > .kt-row-column-wrap' );
8557
- if ( ! empty( $attr['topPadding'] ) || ! empty( $attr['paddingUnit'] ) ) {
8558
- $css->add_property( 'padding-top', ( ! empty( $attr['topPadding'] ) ? $attr['topPadding'] : '25' ) . ( isset( $attr['paddingUnit'] ) && ! empty( $attr['paddingUnit'] ) ? $attr['paddingUnit'] : 'px' ) );
8559
  }
8560
- if ( ! empty( $attr['bottomPadding'] ) || ! empty( $attr['paddingUnit'] ) ) {
8561
- $css->add_property( 'padding-bottom', ( ! empty( $attr['bottomPadding'] ) ? $attr['bottomPadding'] : '25' ) . ( isset( $attr['paddingUnit'] ) && ! empty( $attr['paddingUnit'] ) ? $attr['paddingUnit'] : 'px' ) );
8562
  }
8563
  if ( isset( $attr['leftPadding'] ) ) {
8564
  $css->add_property( 'padding-left', $attr['leftPadding'] . ( isset( $attr['paddingUnit'] ) && ! empty( $attr['paddingUnit'] ) ? $attr['paddingUnit'] : 'px' ) );
8554
  }
8555
  if ( isset( $attr['topPadding'] ) || isset( $attr['bottomPadding'] ) || isset( $attr['paddingUnit'] ) || isset( $attr['leftPadding'] ) || isset( $attr['rightPadding'] ) || isset( $attr['minHeight'] ) || isset( $attr['maxWidth'] ) ) {
8556
  $css->set_selector( '#kt-layout-id' . $unique_id . ' > .kt-row-column-wrap' );
8557
+ if ( ( isset( $attr['topPadding'] ) && is_numeric( $attr['topPadding'] ) ) || ! empty( $attr['paddingUnit'] ) ) {
8558
+ $css->add_property( 'padding-top', ( ( isset( $attr['topPadding'] ) && is_numeric( $attr['topPadding'] ) ) ? $attr['topPadding'] : '25' ) . ( isset( $attr['paddingUnit'] ) && ! empty( $attr['paddingUnit'] ) ? $attr['paddingUnit'] : 'px' ) );
8559
  }
8560
+ if ( ( isset( $attr['bottomPadding'] ) && is_numeric( $attr['bottomPadding'] ) ) || ! empty( $attr['paddingUnit'] ) ) {
8561
+ $css->add_property( 'padding-bottom', ( ( isset( $attr['bottomPadding'] ) && is_numeric( $attr['bottomPadding'] ) ) ? $attr['bottomPadding'] : '25' ) . ( isset( $attr['paddingUnit'] ) && ! empty( $attr['paddingUnit'] ) ? $attr['paddingUnit'] : 'px' ) );
8562
  }
8563
  if ( isset( $attr['leftPadding'] ) ) {
8564
  $css->add_property( 'padding-left', $attr['leftPadding'] . ( isset( $attr['paddingUnit'] ) && ! empty( $attr['paddingUnit'] ) ? $attr['paddingUnit'] : 'px' ) );
kadence-blocks.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Advanced Page Building Blocks for Gutenberg. Create custom column layouts, backgrounds, dual buttons, icons etc.
6
  * Author: Kadence WP
7
  * Author URI: https://www.kadencewp.com
8
- * Version: 2.4.16
9
  * Text Domain: kadence-blocks
10
  * License: GPL2+
11
  * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
@@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) {
20
 
21
  define( 'KADENCE_BLOCKS_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR );
22
  define( 'KADENCE_BLOCKS_URL', plugin_dir_url( __FILE__ ) );
23
- define( 'KADENCE_BLOCKS_VERSION', '2.4.16' );
24
  /**
25
  * Add a check before redirecting
26
  */
5
  * Description: Advanced Page Building Blocks for Gutenberg. Create custom column layouts, backgrounds, dual buttons, icons etc.
6
  * Author: Kadence WP
7
  * Author URI: https://www.kadencewp.com
8
+ * Version: 2.4.17
9
  * Text Domain: kadence-blocks
10
  * License: GPL2+
11
  * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
20
 
21
  define( 'KADENCE_BLOCKS_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR );
22
  define( 'KADENCE_BLOCKS_URL', plugin_dir_url( __FILE__ ) );
23
+ define( 'KADENCE_BLOCKS_VERSION', '2.4.17' );
24
  /**
25
  * Add a check before redirecting
26
  */
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: gutenberg, blocks, page builder, google fonts, dual buttons, svg icons, ed
4
  Donate link: https://www.kadencewp.com/about-us/
5
  Requires at least: 5.9
6
  Tested up to: 6.0
7
- Stable tag: 2.4.16
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -76,6 +76,10 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
76
 
77
  == Changelog ==
78
 
 
 
 
 
79
  = 2.4.16 =
80
  Release Date: October 24th, 2022
81
  * Update: Tabs js to not use jQuery.
4
  Donate link: https://www.kadencewp.com/about-us/
5
  Requires at least: 5.9
6
  Tested up to: 6.0
7
+ Stable tag: 2.4.17
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
76
 
77
  == Changelog ==
78
 
79
+ = 2.4.17 =
80
+ Release Date: October 24th, 2022
81
+ * Fix: Issue with row padding not outputing 0.
82
+
83
  = 2.4.16 =
84
  Release Date: October 24th, 2022
85
  * Update: Tabs js to not use jQuery.