We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 462c689 commit 92f2579Copy full SHA for 92f2579
src/block/icon-label/deprecated.js
@@ -12,6 +12,10 @@ const deprecated = [
12
attributes: attributes( '3.13.1' ),
13
save: withVersion( '3.13.1' )( Save ),
14
isEligible: ( attributes, innerBlocks ) => {
15
+ if ( innerBlocks[ 0 ]?.name !== 'stackable/icon' ) {
16
+ return false
17
+ }
18
+
19
const iconBlockAttributes = innerBlocks[ 0 ].attributes
20
const hasIconSize = iconBlockAttributes.iconSize || iconBlockAttributes.iconSizeTablet || iconBlockAttributes.iconSizeMobile ? true : false
21
const hasIconGap = attributes.iconGap || attributes.iconGapTablet || attributes.iconGapMobile ? true : false
0 commit comments