-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Labels
Milestone
Description
Currently, an exported theme includes attributes such as ref and id for certain blocks, but these have no context outside of the environment where the theme was built. They can also break some blocks (a ref in a nav block that doesn't exist on a different WordPress instance will currently cause the nav block to break).
Here are the cases I can think of, but there may be more:
- Remove
refattributes from the Navigation block - Remove
idattributes from Image and Cover blocks - Remove
wp-image-[id]classes from Image and Cover blocks - Remove
categoryIDs from query blocks - Remove
taxQueryattribute from query blocks -
RemoveI don't think this needs removing, see Theme Export: Strip out site specific details gutenberg#42730 (comment) for more details.queryIdattributes from Query block