File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/block-library/src/post-template Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const TEMPLATE = [
2828function PostTemplateInnerBlocks ( ) {
2929 const innerBlocksProps = useInnerBlocksProps (
3030 { className : 'wp-block-post' } ,
31- { template : TEMPLATE }
31+ { template : TEMPLATE , __unstableDisableLayoutClassNames : true }
3232 ) ;
3333 return < li { ...innerBlocksProps } /> ;
3434}
@@ -98,6 +98,7 @@ export default function PostTemplateEdit( {
9898 displayLayout : { type : layoutType = 'flex' , columns = 1 } = { } ,
9999 previewPostType,
100100 } ,
101+ __unstableLayoutClassNames,
101102} ) {
102103 const [ { page } ] = queryContext ;
103104 const [ activeBlockContextId , setActiveBlockContextId ] = useState ( ) ;
@@ -216,7 +217,7 @@ export default function PostTemplateEdit( {
216217 ) ;
217218 const hasLayoutFlex = layoutType === 'flex' && columns > 1 ;
218219 const blockProps = useBlockProps ( {
219- className : classnames ( {
220+ className : classnames ( __unstableLayoutClassNames , {
220221 'is-flex-container' : hasLayoutFlex ,
221222 [ `columns-${ columns } ` ] : hasLayoutFlex ,
222223 } ) ,
You can’t perform that action at this time.
0 commit comments