Skip to content

Prevent unwanted revisions #2

Open
huubl wants to merge 1 commit into
Twenty-Bellows:trunkfrom
huubl:prevent-unwanted-revisions
Open

Prevent unwanted revisions #2
huubl wants to merge 1 commit into
Twenty-Bellows:trunkfrom
huubl:prevent-unwanted-revisions

Conversation

@huubl

@huubl huubl commented Dec 14, 2025

Copy link
Copy Markdown

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