Skip to content

Commit ad689fa

Browse files
t-hamanoclaudeMamaduka
authored andcommitted
Latest Comments: Fix v1 deprecated block missing supports (#76877)
Add missing `supports` definition to the v1 deprecated block so that migration from v1 works correctly. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
1 parent 8ec2098 commit ad689fa

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

packages/block-library/src/latest-comments/deprecated.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,39 @@ const v1 = {
2323
default: true,
2424
},
2525
},
26+
supports: {
27+
align: true,
28+
color: {
29+
gradients: true,
30+
link: true,
31+
__experimentalDefaultControls: {
32+
background: true,
33+
text: true,
34+
link: true,
35+
},
36+
},
37+
html: false,
38+
spacing: {
39+
margin: true,
40+
padding: true,
41+
},
42+
typography: {
43+
fontSize: true,
44+
lineHeight: true,
45+
__experimentalFontFamily: true,
46+
__experimentalFontWeight: true,
47+
__experimentalFontStyle: true,
48+
__experimentalTextTransform: true,
49+
__experimentalTextDecoration: true,
50+
__experimentalLetterSpacing: true,
51+
__experimentalDefaultControls: {
52+
fontSize: true,
53+
},
54+
},
55+
interactivity: {
56+
clientNavigation: true,
57+
},
58+
},
2659
isEligible( attributes ) {
2760
return attributes?.displayExcerpt === false;
2861
},

0 commit comments

Comments
 (0)