Skip to content

Conversation

@huubl
Copy link

@huubl huubl commented Dec 14, 2025

Hi,

Currently revisions for synced patterns are being created on every load.

Steps to Reproduce

  1. Create a synced pattern.
  2. Click trough some page in WordPress.
  3. Observe that revisions are created (wp post list --post_type='revision').

Suggested Solution

Update synced pattern posts only if the file modification time is newer than the post's last modified time (set to the last file modification time).

Updates pattern posts only if the file modification time is newer than the post's last modified time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant