Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Document.prototype.isModified support for a string of keys as first parameter #13674

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

gastoncasini
Copy link

@gastoncasini gastoncasini commented Jul 30, 2023

Summary

This pull request should fix the issue #13667.
The error was caused in a recent change of the Document.isModified method, to resolve it I returned the paths variable declaration as it was before that change.

Examples

These pictures show the repro script provided in the original issue running with and without the changes

after

before

@gastoncasini gastoncasini changed the title fix: document.isModified support for list of keys as a string fix: document.prototype.isModified support for list of keys as a string Jul 31, 2023
@gastoncasini gastoncasini changed the title fix: document.prototype.isModified support for list of keys as a string fix: document.prototype.isModified support for a string of keys as first parameter Jul 31, 2023
@gastoncasini gastoncasini changed the title fix: document.prototype.isModified support for a string of keys as first parameter fix: Document.prototype.isModified support for a string of keys as first parameter Jul 31, 2023
Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍 looks like unintentional breaking change from b8ebe80 .

@vkarpov15 vkarpov15 added this to the 7.4.2 milestone Aug 1, 2023
@vkarpov15 vkarpov15 merged commit 2e62408 into Automattic:master Aug 1, 2023
17 checks passed
vkarpov15 added a commit that referenced this pull request Oct 8, 2023
…t-string-of-keys

Backport document.isModified fix #13674 to 6.x
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.

None yet

2 participants