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

Fixes #7202 don't set parent timestamps because a child has timestamps set to false #7203

Merged
merged 2 commits into from
Nov 2, 2018

Conversation

lineus
Copy link
Collaborator

@lineus lineus commented Oct 31, 2018

re: #7202 when explicitly creating a parent schema with timestamps: false that has a childSchema with timestamps: false the parent winds up with timestamps because the callback passed to childSchemas.find() only tests for loosely not equal to null. This change fixes that behavior.

added a failing test, made it pass, all current tests pass.

@lineus lineus changed the title Fixes #7202 honor explicitly false timestamps in childSchemas.find callback Fixes #7202 don't set parent timestamps because a child has timestamps set to false Oct 31, 2018
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!

@vkarpov15 vkarpov15 modified the milestones: 5.3.x, 5.3.9 Nov 2, 2018
@vkarpov15 vkarpov15 merged commit e9d538e into Automattic:master Nov 2, 2018
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