File ManagerCurrent Directory: wp-content/themes/astra/inc/assets/jsLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: column-block-compatibility.js const updatingBlock = ['core/group']; wp.hooks.addFilter( 'blocks.registerBlockType', 'astra/meta/groupLayoutSettings', (settings, name) => { if (!updatingBlock.includes(name)) { return settings; } const newSettings = { ...settings, supports: { ...(settings.supports || {}), layout: { ...(settings.supports.layout || {}), allowEditing: true, allowSwitching: false, allowInheriting: true, }, __experimentalLayout: { ...(settings.supports.__experimentalLayout || {}), allowEditing: true, allowSwitching: false, allowInheriting: true, }, }, }; return newSettings; }, 20 ); wp.hooks.addFilter( 'blocks.getBlockAttributes', 'astra/groupBlockSetting/checkInheritOption', (attributes, blockType) => { if (!updatingBlock.includes(blockType.name)) { return attributes; } if (blockType.name == 'core/group' && undefined != attributes.layout && 'flex' === attributes.layout.type) { return attributes; } if (blockType.name == 'core/group' && undefined != attributes.layout && false == attributes.layout.inherit ) { return attributes; } attributes = { ...attributes, layout: { inherit: true, }, }; return attributes; } ); /** * Set "Inherit default layout" option enable by default for Group block. * * Also set "Full Width" layout by default on drag-drop for following blocks. */ wp.blocks.registerBlockVariation( 'core/group', { isDefault: true, attributes: { layout: { inherit: true, }, align: 'full' }, } ); wp.blocks.registerBlockVariation( 'core/cover', { isDefault: true, attributes: { align: 'full' }, } ); Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)Dirast-parse-svg.jsFile244.00 B Rename | Delete | Editast-render-svg.jsFile882.00 B Rename | Delete | Editastra-admin-menu-settings.jsFile4.96 KB Rename | Delete | Editblock-editor-script.jsFile12.14 KB Rename | Delete | Editcolumn-block-compatibility.jsFile1.72 KB Rename | Delete | Editcustom-fields-priority.jsFile900.00 B Rename | Delete | Editcustomizer-preview.jsFile14.09 KB Rename | Delete | Edit