We have several functions that take arguments like blockType, attributes, innerHtml, but the order is not always consistent.
Since this is an often repeated pattern, we should consolidate usage.
Examples:
isValidBlock — innerHTML, blockType, attributes.
getBlockAttributes — blockType, innerHTML, attributes.
getAttributesFromDeprecatedVersion — blockType, innerHTML, attributes.
createBlock — name, attributes, innerBlocks.
getSaveContent — blockType, attributes.
We have several functions that take arguments like
blockType,attributes,innerHtml, but the order is not always consistent.Since this is an often repeated pattern, we should consolidate usage.
Examples:
isValidBlock — innerHTML, blockType, attributes.getBlockAttributes — blockType, innerHTML, attributes.getAttributesFromDeprecatedVersion — blockType, innerHTML, attributes.createBlock — name, attributes, innerBlocks.getSaveContent — blockType, attributes.