Do not create revisions for the GlobalStyles CustomPostType #30132
Labels
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Status] In Progress
Tracking issues with work in progress
We use a CustomPostType to store user data for global styles. The CPT post_type is
global-styles
and the post name iswp-global-styles-<theme-stylesheet>
.In #30088 (comment) @jeyip shared that he was seeing revisions stored for the CPT.
We're not using these revisions yet, so we should look into how/whether we can prevent them from being created.
How to test
wp_posts
table by thepost_modified
field in descending order.wp-global-styles-tt1-blocks
aspost_name
and that a revision was created as well (post_name along the lines of<post_type_id_of_global_styles_cpt>-revision-v1
.The text was updated successfully, but these errors were encountered: