Skip to content

Commit 1198bd0

Browse files
Merge pull request #897 from stellarwp/release/3.5.31-2
Release/3.5.31 2
2 parents 89ecfab + d0e602c commit 1198bd0

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

includes/blocks/class-kadence-blocks-advanced-heading-block.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,12 @@ public function build_css( $attributes, $css, $unique_id, $unique_style_id ) {
373373
$css->set_media_state( 'mobile' );
374374
$css->render_border_radius( $attributes, 'mobileMarkBorderRadius', ( ! empty( $attributes['markBorderRadiusUnit'] ) ? $attributes['markBorderRadiusUnit'] : 'px' ) );
375375
$css->set_media_state( 'desktop' );
376+
$mark_padding_args = array(
377+
'desktop_key' => 'markPadding',
378+
'tablet_key' => 'markTabPadding',
379+
'mobile_key' => 'markMobilePadding',
380+
);
381+
$css->render_measure_output( $attributes, 'markPadding', 'padding', $mark_padding_args );
376382

377383
// Inline Image.
378384
$css->set_selector( '.wp-block-kadence-advancedheading.kt-adv-heading' . $unique_id . ' img.kb-inline-image, .wp-block-kadence-advancedheading.kt-adv-heading' . $unique_id . '[data-kb-block="kb-adv-heading' . $unique_id . '"] img.kb-inline-image' );
@@ -435,12 +441,6 @@ public function build_css( $attributes, $css, $unique_id, $unique_style_id ) {
435441
$css->set_media_state( 'mobile' );
436442
$css->render_border_radius( $attributes, 'mobileInlineImageBorderRadius', ( ! empty( $attributes['inlineImageBorderRadiusUnit'] ) ? $attributes['inlineImageBorderRadiusUnit'] : 'px' ) );
437443
$css->set_media_state( 'desktop' );
438-
$mark_padding_args = array(
439-
'desktop_key' => 'markPadding',
440-
'tablet_key' => 'markTabPadding',
441-
'mobile_key' => 'markMobilePadding',
442-
);
443-
$css->render_measure_output( $attributes, 'markPadding', 'padding', $mark_padding_args );
444444
// Link.
445445
if ( ! empty( $attributes['linkColor'] ) ) {
446446
$css->set_selector( '.wp-block-kadence-advancedheading.kt-adv-heading' . $unique_id . '[data-kb-block="kb-adv-heading' . $unique_id . '"] a, .kt-adv-heading-link' . $unique_id . ', .kt-adv-heading-link' . $unique_id . ' .kt-adv-heading' . $unique_id . '[data-kb-block="kb-adv-heading' . $unique_id . '"]' );

kadence-blocks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Advanced Page Building Blocks for Gutenberg. Create custom column layouts, backgrounds, dual buttons, icons etc.
66
* Author: Kadence WP
77
* Author URI: https://www.kadencewp.com
8-
* Version: 3.5.30
8+
* Version: 3.5.31
99
* Requires PHP: 7.4
1010
* Text Domain: kadence-blocks
1111
* License: GPL2+
@@ -20,7 +20,7 @@
2020
}
2121
define( 'KADENCE_BLOCKS_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR );
2222
define( 'KADENCE_BLOCKS_URL', plugin_dir_url( __FILE__ ) );
23-
define( 'KADENCE_BLOCKS_VERSION', '3.5.30' );
23+
define( 'KADENCE_BLOCKS_VERSION', '3.5.31' );
2424

2525
require_once plugin_dir_path( __FILE__ ) . 'vendor/vendor-prefixed/autoload.php';
2626
require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: gutenberg, blocks, page builder, editor, gutenberg blocks
44
Donate link: https://www.kadencewp.com/about-us/
55
Requires at least: 6.6
66
Tested up to: 6.9
7-
Stable tag: 3.5.30
7+
Stable tag: 3.5.31
88
Requires PHP: 7.4
99
License: GPLv2 or later
1010
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -174,6 +174,10 @@ Please report security bugs found in the Kadence Blocks plugin's source code thr
174174

175175
== Changelog ==
176176

177+
= 3.5.31 =
178+
Release Date: 9th January 2026
179+
* Fix: issue with adv highlight padding
180+
177181
= 3.5.30 =
178182
Release Date: 8th January 2026
179183
* Add: Classic adv form transform tool to new form block.

0 commit comments

Comments
 (0)