diff --git a/composer.lock b/composer.lock index 14bc235f8d..2c18c51427 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "codeinwp/themeisle-sdk", - "version": "3.3.55", + "version": "3.3.58", "source": { "type": "git", "url": "https://github.com/Codeinwp/themeisle-sdk.git", - "reference": "bd601798d209a4bc5962d2a19a22dc6dddf341cc" + "reference": "d6807c0b7308e323bd77cced667dee3f2d5e6a82" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/bd601798d209a4bc5962d2a19a22dc6dddf341cc", - "reference": "bd601798d209a4bc5962d2a19a22dc6dddf341cc", + "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/d6807c0b7308e323bd77cced667dee3f2d5e6a82", + "reference": "d6807c0b7308e323bd77cced667dee3f2d5e6a82", "shasum": "" }, "require-dev": { @@ -43,9 +43,9 @@ ], "support": { "issues": "https://github.com/Codeinwp/themeisle-sdk/issues", - "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.55" + "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.58" }, - "time": "2026-07-20T10:57:27+00:00" + "time": "2026-07-29T08:38:52+00:00" }, { "name": "wptt/webfont-loader", diff --git a/inc/core/styles/dynamic_selector.php b/inc/core/styles/dynamic_selector.php index cf6b8524c0..24655338d4 100644 --- a/inc/core/styles/dynamic_selector.php +++ b/inc/core/styles/dynamic_selector.php @@ -29,6 +29,7 @@ class Dynamic_Selector { const META_DEVICE_ONLY = 'device_only'; const META_FILTER = 'filter'; const META_AS_JSON = 'as_json'; + const META_IS_EMPTY = 'is_empty'; const KEY_SELECTOR = 'selectors'; const KEY_RULES = 'rules'; @@ -174,6 +175,10 @@ public function get_value( $meta ) { $default = isset( $meta[ self::META_DEFAULT ] ) ? $meta[ self::META_DEFAULT ] : false; $value = Mods::get( $key, $default ); + // Only check whether the value is empty when the meta has the is_empty flag set to true. + if ( isset( $meta[ self::META_IS_EMPTY ] ) && $meta[ self::META_IS_EMPTY ] && empty( $value ) ) { + return $default; + } if ( $value === false || $value === null || $value === '' ) { return $default;